mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 05:12:30 +01:00
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:
parent
a9b9af8102
commit
3dd29e2d3a
16
build.gradle
16
build.gradle
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user