Skip to content

Commit 4ada82e

Browse files
authored
add reproducible build config (#57)
1 parent 1ea3244 commit 4ada82e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

buildSrc/src/main/kotlin/buildsrc/convention/base.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ if (project != rootProject) {
1515

1616
extensions.create<KxsTsGenBuildSettings>(KxsTsGenBuildSettings.NAME)
1717

18+
tasks.withType<AbstractArchiveTask>().configureEach {
19+
// https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives
20+
isPreserveFileTimestamps = false
21+
isReproducibleFileOrder = true
22+
}
23+
1824
tasks.withType<Test>().configureEach {
1925
timeout.set(Duration.ofMinutes(10))
2026

0 commit comments

Comments
 (0)