From bc1cc074b8d03307116196bed4245acbeff31ece Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sun, 14 Apr 2024 21:04:01 +0200 Subject: [PATCH] Make builds reproducible (#4395) Signed-off-by: Alexander Brandes --- Bukkit/build.gradle.kts | 1 + Core/build.gradle.kts | 1 + build.gradle.kts | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index 19e48b218..a09296f26 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -113,5 +113,6 @@ tasks { opt.encoding("UTF-8") opt.keyWords() opt.addStringOption("-since", isRelease) + opt.noTimestamp() } } diff --git a/Core/build.gradle.kts b/Core/build.gradle.kts index a12fe2ad2..396e7046e 100644 --- a/Core/build.gradle.kts +++ b/Core/build.gradle.kts @@ -78,5 +78,6 @@ tasks { opt.encoding("UTF-8") opt.keyWords() opt.addStringOption("-since", isRelease) + opt.noTimestamp() } } diff --git a/build.gradle.kts b/build.gradle.kts index 67f66107d..cf7f1c4db 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -209,6 +209,11 @@ subprojects { test { useJUnitPlatform() } + + withType().configureEach { + isPreserveFileTimestamps = false + isReproducibleFileOrder = true + } } }