From 94d7462891be35566cedced2cee57d9551422dd5 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 aims to ensure 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 d88536a3fe43..d7bb33a5d5c9 100644 --- a/spring-core/spring-core.gradle +++ b/spring-core/spring-core.gradle @@ -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)) {