Skip to content

Commit

Permalink
Make builds reproducible
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Brandes <mc.cache@web.de>
  • Loading branch information
NotMyFault committed Apr 16, 2024
1 parent 74bb9d1 commit 4384128
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

tasks.compileJava.configure {
options.release.set(17)
tasks {
compileJava.configure {
options.release.set(17)
}

withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
}


configurations.all {
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
}
Expand Down

0 comments on commit 4384128

Please sign in to comment.