on multigram-before-12.10.5 help sign in
Multigram/reproducible.gradle
15 lines 611 B history raw
1// Gradle init script that enforces byte-for-byte reproducibility on every
2// archive task. AGP 8.x already produces deterministic APKs/AABs, but any
3// custom Zip/Jar tasks added by submodules or plugins need these flags too.
4//
5// Applied automatically when SOURCE_DATE_EPOCH is set in the environment, or
6// can be applied explicitly with `--init-script reproducible.gradle`.
8allprojects {
9 tasks.withType(AbstractArchiveTask).configureEach {
10 preserveFileTimestamps = false
11 reproducibleFileOrder = true
12 dirPermissions { unix(0755) }
13 filePermissions { unix(0644) }
14 }