Enables reproducible builds by disabling timestamps and enabling reproducible build order in archive outputs. (#607)

Co-authored-by: infra <infra@sterile.solutions>
This commit is contained in:
infra 2021-04-27 11:50:36 -04:00 committed by GitHub
parent b9b4d846d3
commit c5c3720f80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,12 @@ configurations {
} }
} }
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
tasks.withType<JavaCompile> { tasks.withType<JavaCompile> {
options.encoding = "UTF-8" options.encoding = "UTF-8"
} }