From 50a0094a47bc25539ccca4cb184af53f44aff3f0 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 13 Jun 2020 14:36:27 +0200 Subject: [PATCH] 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 ensures that the spring-core JAR is "reproducible". --- spring-core/spring-core.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-core/spring-core.gradle b/spring-core/spring-core.gradle index d656bb3e83..1cf27c7212 100644 --- a/spring-core/spring-core.gradle +++ b/spring-core/spring-core.gradle @@ -73,6 +73,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)) {