Skip to content

Commit

Permalink
Reproducible build
Browse files Browse the repository at this point in the history
addded timestamp
added maven-artifact-plugin

Still failing with

`mvn artifact:check-buildplan`
  • Loading branch information
lucamolteni committed Jan 24, 2024
1 parent f71d069 commit cbb7f8b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
As the sonar.moduleKey inherits the value of sonar.projectKey by default, we have to override it too. -->
<sonar.moduleKey>${project.groupId}:${project.artifactId}</sonar.moduleKey>
<version.rewrite.plugin>4.45.0</version.rewrite.plugin>

<!-- reproducible build -->
<project.build.outputTimestamp>2024-01-12T00:00:00Z</project.build.outputTimestamp>
<version.maven.artifact.plugin>3.4.1</version.maven.artifact.plugin>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -153,6 +157,22 @@
<module>optaplanner-examples</module>
</modules>

<!-- reproducible build -->
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-artifact-plugin</artifactId>
<version>${version.maven.artifact.plugin}</version>
<configuration>
<outputTimestamp>${project.build.outputTimestamp}</outputTimestamp>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>fullProfile</id>
Expand Down

0 comments on commit cbb7f8b

Please sign in to comment.