From 4ccec31b1023a9fb20cbbb4662373e40a2ed7588 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 22 Jul 2018 16:23:55 +0200 Subject: [PATCH] Added manifest info --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index f46336d..279d812 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,7 @@ import dorkbox.license.License import java.nio.file.Paths +import java.time.Instant buildscript { // load properties from custom location @@ -124,6 +125,15 @@ tasks.withType(JavaCompile) { options.incremental = true } +tasks.withType(Jar) { + duplicatesStrategy DuplicatesStrategy.FAIL + + manifest { + attributes['Implementation-Version'] = project.version + attributes['Build-Date'] = Instant.now().toString() + } +} + /////////////////////////////// ////// Plugin Publishing + Release ///////////////////////////////