Normalize timestamps and file ordering in jars, making the outputs reproducible (#6471)
This commit is contained in:
parent
dab1a6cc8f
commit
a1c72d17e0
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue