From 5b55480dd7142222b6c1cf4a53a2347189411a67 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 22 Jan 2017 21:22:14 +0100 Subject: [PATCH] MANIFEST file in WAR --- SpringJava/Gradle/spring-jpa-resources/build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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') + ) + } + } +} + -- 2.1.4