Skip to content

Commit

Permalink
Add support for reproducible builds (opensearch-project#472) (opensea…
Browse files Browse the repository at this point in the history
…rch-project#499)

As per gradle [docs] add support to remove timestamps and package with same order which is required from
[reproducible] builds

[docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:archives
[reproducible]: https://reproducible-builds.org/

Signed-off-by: Leonidas Spyropoulos <[email protected]>
(cherry picked from commit a27d5a214f2bcd9101e7602d715d17592ccd5e0f)
Signed-off-by: prudhvigodithi <[email protected]>

Co-authored-by: Leonidas Spyropoulos <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and inglor authored Aug 2, 2022
1 parent 836d438 commit ec1fc0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ allprojects {
compileKotlin.kotlinOptions.jvmTarget = compileTestKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_11
compileKotlin.dependsOn ktlint
}
tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
}

evaluationDependsOnChildren()
Expand Down

0 comments on commit ec1fc0c

Please sign in to comment.