Skip to content

Commit

Permalink
Normalize timestamps and file ordering in jars, making the outputs re…
Browse files Browse the repository at this point in the history
…producible
  • Loading branch information
DPUkyle committed May 22, 2024
1 parent a764419 commit c3e4a3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c3e4a3f

Please sign in to comment.