mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 12:38:24 +00:00
Add reproducible file order and timestamp settings for archive tasks in Android build configuration
This commit is contained in:
@@ -5,6 +5,15 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
// Reproducible archives (zip/jar/aar): stable file order + no timestamps.
|
||||
// This reduces non-functional diffs in build artifacts.
|
||||
subprojects {
|
||||
tasks.withType<org.gradle.api.tasks.bundling.AbstractArchiveTask>().configureEach {
|
||||
isPreserveFileTimestamps = false
|
||||
isReproducibleFileOrder = true
|
||||
}
|
||||
}
|
||||
|
||||
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
|
||||
rootProject.layout.buildDirectory.value(newBuildDir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user