From ca87646e389d8ab3b24f17d2505ffe6fa4aa4a5a Mon Sep 17 00:00:00 2001 From: "Turban, Andreas" Date: Mon, 12 Jun 2023 17:23:36 +0200 Subject: [PATCH] Release 1.0.1 Added LICENSE to built jars. Added Implementation information to MANIFEST.MF. --- build.gradle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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'