提交 6946719e 编写于 作者: 如梦技术's avatar 如梦技术 🐛

优化 jar manifest

上级 1bc900fd
......@@ -4,6 +4,7 @@
## [2.1.0] - 2021-05-21
### 新功能
- :sparkles: 支持 gradle 增量编译
- :sparkles: 优化 jar manifest
- :arrow_up: 升级 Spring boot 到 2.5.0
- :arrow_up: 升级 lombok 到 1.18.20
- :arrow_up: 升级 google auto 到 1.0
......
......@@ -4,7 +4,10 @@ apply plugin: 'maven-publish'
jar {
afterEvaluate {
manifest {
attributes 'Implementation-Version': version
attributes["Implementation-Title"] = project.name
attributes["Implementation-Version"] = project.version
attributes["Automatic-Module-Name"] = project.name.replace('-', '.') // for Jigsaw
attributes["Created-By"] = "${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册