This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new acd2ad3aa feat(build): make archive builds reproducible (#1664)
acd2ad3aa is described below

commit acd2ad3aa3ad25e427580807133034fc788a3559
Author: Robert Stupp <[email protected]>
AuthorDate: Mon May 26 10:33:29 2025 +0200

    feat(build): make archive builds reproducible (#1664)
    
    See 
https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives
---
 build-logic/src/main/kotlin/polaris-java.gradle.kts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/build-logic/src/main/kotlin/polaris-java.gradle.kts 
b/build-logic/src/main/kotlin/polaris-java.gradle.kts
index 63475383a..2c45da15f 100644
--- a/build-logic/src/main/kotlin/polaris-java.gradle.kts
+++ b/build-logic/src/main/kotlin/polaris-java.gradle.kts
@@ -213,3 +213,10 @@ configurations.all {
       }
     }
 }
+
+// ensure jars conform to reproducible builds
+// 
(https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives)
+tasks.withType<AbstractArchiveTask>().configureEach {
+  isPreserveFileTimestamps = false
+  isReproducibleFileOrder = true
+}

Reply via email to