From 6c8f7951226e6ad9a13a56341aac77913ec16ebd Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Tue, 11 Sep 2012 22:20:20 +0200 Subject: [PATCH] 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 --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 2889c94af2..f5898654b6 100644 --- a/build.gradle +++ b/build.gradle @@ -58,6 +58,8 @@ configure(subprojects) { subproject -> apply from: "${rootProject.projectDir}/publish-maven.gradle" jar { + manifest.attributes['Created-By'] = + "${System.getProperty('java.version')} (${System.getProperty('java.specification.vendor')})" manifest.attributes['Implementation-Title'] = subproject.name manifest.attributes['Implementation-Version'] = subproject.version