diff --git a/build.gradle b/build.gradle index ff278e9..51f9f48 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } -version = "0.1-SNAPSHOT" +version = "1.0.1" subprojects { project.apply plugin: "java" @@ -24,6 +24,24 @@ subprojects { useJUnitPlatform() } + tasks.named("jar", Jar).configure { + it.setPreserveFileTimestamps(false) + it.setReproducibleFileOrder(true) + manifest{ + attributes( + "Implementation-Title": project.name, + "Implementation-Version": project.version, + "Implementation-Vendor": "Andreas Turban", + ) + } + } + + tasks.named("processResources", ProcessResources).configure { + from(rootProject.file("LICENSE")){ + into("META-INF") + } + } + project.dependencies { compileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2' compileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '4.7.3'