Skip to content

Commit 6c8f795

Browse files
committed
Add Created-By attribute to jar manifests
This commit ensures that the 'Created-By:' attribute [1] is added to each jar's META-INF/MANIFEST.MF in order to identify clearly the vendor and version of Java used during the build process. [1]: http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html
1 parent 0af0491 commit 6c8f795

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ configure(subprojects) { subproject ->
5858
apply from: "${rootProject.projectDir}/publish-maven.gradle"
5959

6060
jar {
61+
manifest.attributes['Created-By'] =
62+
"${System.getProperty('java.version')} (${System.getProperty('java.specification.vendor')})"
6163
manifest.attributes['Implementation-Title'] = subproject.name
6264
manifest.attributes['Implementation-Version'] = subproject.version
6365

0 commit comments

Comments
 (0)