Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
Added LICENSE to built jars.
Added Implementation information to MANIFEST.MF.
  • Loading branch information
AndreasTuVector committed Jun 12, 2023
1 parent f2bb27d commit ca87646
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

}

version = "0.1-SNAPSHOT"
version = "1.0.1"

subprojects {
project.apply plugin: "java"
Expand All @@ -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'
Expand Down

0 comments on commit ca87646

Please sign in to comment.