build.gradle: apply artifact normalization to all subprojects

Normalization is needed for reproducibility. Previously it was
applied only to `core`.
This commit is contained in:
Sean Gilligan 2023-09-21 14:18:52 -07:00 committed by Andreas Schildbach
parent a9b9af8102
commit 3dd29e2d3a
2 changed files with 16 additions and 14 deletions

View File

@ -21,4 +21,20 @@ allprojects {
}
group = 'org.bitcoinj'
// Ensure standard artifacts in all projects are built reproducibly
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
tasks.withType(Jar) {
dirMode = 0755
fileMode = 0644
}
tasks.withType(Javadoc) {
options.noTimestamp = true
}
}

View File

@ -52,20 +52,6 @@ protobuf {
}
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
tasks.withType(Jar) {
dirMode = 0755
fileMode = 0644
}
tasks.withType(Javadoc) {
options.noTimestamp = true
}
tasks.withType(Test) {
exclude 'org/bitcoinj/net/discovery/DnsDiscoveryTest*'
testLogging {