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 ///////////////////////////////