Skip to content

Commit

Permalink
Merge pull request #3153 from ControlSystemStudio/reproducible_builds
Browse files Browse the repository at this point in the history
Reproducible builds
  • Loading branch information
shroffk authored Oct 2, 2024
2 parents bff15ea + 21141bd commit ff51447
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 @@ -92,6 +92,8 @@
<maven.compiler.target>17</maven.compiler.target>
<activemq.client.version>5.18.4</activemq.client.version>
<commons.compress.version>1.26.1</commons.compress.version>
<!--suppress UnresolvedMavenProperty -->
<project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>
</properties>
<build>
<plugins>
Expand Down Expand Up @@ -163,6 +165,32 @@
See: https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
<version>3.3.0</version>
</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>
<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>
<excludeProperty>^git.local.branch.*$</excludeProperty>
</excludeProperties>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit ff51447

Please sign in to comment.