From f7a251198b0d2d9373b9b36fbe4645886789b6df Mon Sep 17 00:00:00 2001 From: Kunal Shroff Date: Tue, 1 Oct 2024 09:37:28 -0400 Subject: [PATCH 1/2] reproducible builds, include git commit info and git commit time --- pom.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/pom.xml b/pom.xml index 7889528e13..4871637ada 100644 --- a/pom.xml +++ b/pom.xml @@ -92,6 +92,8 @@ 17 5.18.4 1.26.1 + + ${git.commit.time} @@ -163,6 +165,31 @@ See: https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> 3.3.0 + + + io.github.git-commit-id + git-commit-id-maven-plugin + 9.0.1 + + + get-the-git-infos + + revision + + + + + ${project.basedir}/.git + git + false + true + ${project.build.outputDirectory}/git.properties + json + + ^git.build.*$ + + + From 21141bddd23da3668ddbe75353c792724c9213d2 Mon Sep 17 00:00:00 2001 From: Kunal Shroff Date: Tue, 1 Oct 2024 12:07:49 -0400 Subject: [PATCH 2/2] remove the some local details --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 4871637ada..d20dbc8b94 100644 --- a/pom.xml +++ b/pom.xml @@ -187,6 +187,7 @@ json ^git.build.*$ + ^git.local.branch.*$