Skip to content

Commit

Permalink
Ensure spring-core JAR is reproducible
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
sbrannen committed Jun 13, 2020
1 parent 3f7e86e commit 94d7462
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spring-core/spring-core.gradle
Expand Up @@ -72,6 +72,9 @@ dependencies {
}

jar {
reproducibleFileOrder = true
preserveFileTimestamps = false // maybe not necessary here, but good for reproducibility

// Inline repackaged cglib classes directly into spring-core jar
dependsOn cglibRepackJar
from(zipTree(cglibRepackJar.archivePath)) {
Expand Down

0 comments on commit 94d7462

Please sign in to comment.