Skip to content

Commit

Permalink
Make builds reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyFault committed Apr 16, 2024
1 parent ab559cc commit 8edc8c2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.gradle.kts
Expand Up @@ -16,8 +16,15 @@ 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 {
Expand Down

0 comments on commit 8edc8c2

Please sign in to comment.