From: Gustavo Martin Morcuende Date: Sun, 22 Jan 2017 20:22:14 +0000 (+0100) Subject: MANIFEST file in WAR X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=5b55480dd7142222b6c1cf4a53a2347189411a67;p=JavaForFun MANIFEST file in WAR --- diff --git a/SpringJava/Gradle/spring-jpa-resources/build.gradle b/SpringJava/Gradle/spring-jpa-resources/build.gradle index 0252d69..66c5fd0 100644 --- a/SpringJava/Gradle/spring-jpa-resources/build.gradle +++ b/SpringJava/Gradle/spring-jpa-resources/build.gradle @@ -32,3 +32,18 @@ dependencies { exclude group: 'commons-logging', module: 'commons-logging' } } + +// ***************** MANIFEST FILE ***************** +war { + doFirst { + manifest { + 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') + ) + } + } +} +