Skip to content

Commit

Permalink
Refactor reproducible build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Sep 8, 2024
1 parent e26472d commit 62c7fbf
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<skipSigningArtifacts>true</skipSigningArtifacts>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>itsallcode</sonar.organization>
<reproducible.build.timestamp>${git.commit.time}</reproducible.build.timestamp>
<project.build.outputTimestamp>${reproducible.build.timestamp}</project.build.outputTimestamp>
</properties>
<distributionManagement>
<snapshotRepository>
Expand Down Expand Up @@ -182,6 +184,11 @@
</additionalJOptions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -231,18 +238,42 @@
</executions>
</plugin>
<plugin>
<groupId>io.github.zlika</groupId>
<artifactId>reproducible-build-maven-plugin</artifactId>
<version>0.17</version>
<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>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<skipPoms>false</skipPoms>
<includeOnlyProperties>
<includeOnlyProperty>git.commit.time</includeOnlyProperty>
</includeOnlyProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-artifact-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<id>strip-jar</id>
<phase>package</phase>
<id>verify-reproducible-build</id>
<phase>verify</phase>
<goals>
<goal>strip-jar</goal>
<goal>check-buildplan</goal>
</goals>
</execution>
</executions>
<configuration>
<failOnNonReproducible>true</failOnNonReproducible>
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 62c7fbf

Please sign in to comment.