Skip to content

Commit

Permalink
Merge pull request #199 from Olog/reproducible_builds
Browse files Browse the repository at this point in the history
reproducible builds, include git commit info and git commit time
  • Loading branch information
shroffk authored Jan 31, 2025
2 parents 494839c + f049924 commit 2228041
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
<skipITCoverage>true</skipITCoverage>
<jacoco.skip>true</jacoco.skip>
<jackson.version>2.14.3</jackson.version>
<!--suppress UnresolvedMavenProperty -->
<project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -398,6 +400,32 @@
</execution>
</executions>
</plugin>
<!-- Include the git properties to ensure reproducible builds -->
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>9.0.1</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<prefix>git</prefix>
<verbose>false</verbose>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<format>json</format>
<excludeProperties>
<excludeProperty>^git.build.*$</excludeProperty>
</excludeProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand Down

0 comments on commit 2228041

Please sign in to comment.