Use archivesBaseName for Implementation-Title (#2550)
This commit is contained in:
parent
af546a42df
commit
0bf8bf1073
16
build.gradle
16
build.gradle
|
|
@ -147,13 +147,15 @@ subprojects {
|
|||
options.compilerArgs += ["-Xlint:-serial"]
|
||||
}
|
||||
|
||||
jar.manifest {
|
||||
attributes('Implementation-Title': name,
|
||||
'Implementation-Version': version,
|
||||
'Built-By': System.getProperty('user.name'),
|
||||
'Built-JDK': System.getProperty('java.version'),
|
||||
'Source-Compatibility': sourceCompatibility,
|
||||
'Target-Compatibility': targetCompatibility)
|
||||
afterEvaluate {
|
||||
jar.manifest {
|
||||
attributes('Implementation-Title': archivesBaseName,
|
||||
'Implementation-Version': version,
|
||||
'Built-By': System.getProperty('user.name'),
|
||||
'Built-JDK': System.getProperty('java.version'),
|
||||
'Source-Compatibility': sourceCompatibility,
|
||||
'Target-Compatibility': targetCompatibility)
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
|
|
|
|||
Loading…
Reference in New Issue