Normalize timestamps and file ordering in jars, making the outputs reproducible (#6471)

This commit is contained in:
Kyle Moore 2024-05-28 09:44:23 -07:00 committed by GitHub
parent dab1a6cc8f
commit a1c72d17e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,13 @@ base {
}
}
// normalize timestamps and file ordering in jars, making the outputs reproducible
// see open-telemetry/opentelemetry-java#4488
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))