From 1726f9e380666b7740e818be85fe311ef2569764 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 22 Jan 2017 18:29:26 +0100 Subject: [PATCH] Improving JAR manifest file --- SpringJava/Gradle/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SpringJava/Gradle/build.gradle b/SpringJava/Gradle/build.gradle index 3fbb125..8493ff3 100644 --- a/SpringJava/Gradle/build.gradle +++ b/SpringJava/Gradle/build.gradle @@ -101,7 +101,12 @@ subprojects { jar { manifest { - attributes 'Implementation-Title': 'Spring JPA Persistence, gradle example', 'Implementation-Version': version + attributes('Implementation-Title': 'Spring JPA Persistence, gradle example', + 'Implementation-Version': version, + 'Build-Time': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"), + 'Built-By': System.getProperty('user.name'), + 'Built-JDK': System.getProperty('java.version') + ) } } -- 2.1.4