Skip to content

Commit bfd3b76

Browse files
committed
Enable reproducible builds.
1 parent 24b777c commit bfd3b76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/src/main/kotlin/io.github.nstdio.http.ext.publish-conventions.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ signing {
8181
sign(publishing.publications["mavenJava"])
8282
}
8383

84+
tasks.withType<AbstractArchiveTask>().configureEach {
85+
isPreserveFileTimestamps = false
86+
isReproducibleFileOrder = true
87+
}
88+
8489
tasks.create("changelog", GitChangelogTask::class) {
8590
fromRepo = project.rootDir.path
8691
file = File("CHANGELOG.md")

0 commit comments

Comments
 (0)