Added manifest info

master
nathan 2018-07-22 16:23:55 +02:00
parent 589f289f0e
commit 4ccec31b10
1 changed files with 10 additions and 0 deletions

View File

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