Skip to content

Commit 49c4331

Browse files
authored
Create reproducible.gradle.kts
1 parent c01db3b commit 49c4331

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Other/Other/reproducible.gradle.kts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Prevent the manifest from changing every build
2+
tasks.withType<Jar> {
3+
manifest.attributes["Date"] = ""
4+
}
5+
6+
// Prevent timestamps from appearing in JAR and use reproducible file order
7+
tasks.withType<AbstractArchiveTask> {
8+
isPreserveFileTimestamps = false
9+
isReproducibleFileOrder = true
10+
}

0 commit comments

Comments
 (0)