From 0a18985db2b20b9b9857dade9c573633e0b5e3bd Mon Sep 17 00:00:00 2001 From: Kunal Shroff Date: Tue, 1 Oct 2024 09:25:08 -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 56efb3a..38770de 100644 --- a/pom.xml +++ b/pom.xml @@ -62,6 +62,8 @@ true true 2.14.3 + + ${git.commit.time} @@ -399,6 +401,31 @@ + + + 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.*$ + + + org.apache.maven.plugins maven-release-plugin From f049924d808872ecff489d3a5a436b7a1e21237f Mon Sep 17 00:00:00 2001 From: Kunal Shroff Date: Fri, 4 Oct 2024 10:36:01 -0400 Subject: [PATCH 2/2] Do not fail on git-commit failing to find git repo --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 38770de..0ef0268 100644 --- a/pom.xml +++ b/pom.xml @@ -415,6 +415,7 @@ + false ${project.basedir}/.git git false