Skip to content

Commit 94d7462

Browse files
committed
Ensure spring-core JAR is reproducible
Prior to this commit, a change to Javadoc in any class in spring-core would result in ALL tests in the entire test suite being re-run via the Gradle build. Thanks to a tip from @melix, this commit aims to ensure that the spring-core JAR is "reproducible".
1 parent 3f7e86e commit 94d7462

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-core/spring-core.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ dependencies {
7272
}
7373

7474
jar {
75+
reproducibleFileOrder = true
76+
preserveFileTimestamps = false // maybe not necessary here, but good for reproducibility
77+
7578
// Inline repackaged cglib classes directly into spring-core jar
7679
dependsOn cglibRepackJar
7780
from(zipTree(cglibRepackJar.archivePath)) {

0 commit comments

Comments
 (0)