Skip to content

Commit 9c97284

Browse files
committed
Try to ensure reproducible builds
1 parent 11f8d22 commit 9c97284

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ jar {
3939

4040
tasks.withType(AbstractArchiveTask).configureEach {
4141
// ensure 100% byte-for-byte reproducible builds
42+
// https://github.com/jvm-repo-rebuild/reproducible-central
43+
// https://github.com/gradle/gradle/issues/28806
4244
preserveFileTimestamps = false
4345
reproducibleFileOrder = true
46+
dirMode = 0755 // rwx r-x r-x
47+
fileMode = 0644 // rw- r-- r--
4448
}
4549

4650
checkstyle {

0 commit comments

Comments
 (0)