Skip to content

Commit

Permalink
Make plugin, source, javadoc builds reproducible
Browse files Browse the repository at this point in the history
https://maven.apache.org/guides/mini/guide-reproducible-builds.html

Repeating this on the console (without line breaks) should always yield
the same result for the same OS, Java major and commit ID:

mvn clean verify
  -DskipTest
  -P mojo-release,release-sign-artifacts,\!integration-test
  > /dev/null 2>&1
&& md5sum.exe target/*.jar target/*.pom
  • Loading branch information
kriegaex committed Mar 28, 2022
1 parent 53dbc65 commit a323cd2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<!-- Minimum Maven version required to run this plugin (not enforced at the moment, see 'prerequisites' section) -->
<mavenRuntimeVersion>3.0.5</mavenRuntimeVersion>

<!-- Reproducible builds, https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
<project.build.outputTimestamp>1</project.build.outputTimestamp>

<junitVersion>4.13.2</junitVersion>
<doxiaVersion>1.11.1</doxiaVersion>
<doxiaSitetoolsVersion>1.11.1</doxiaSitetoolsVersion>
Expand Down Expand Up @@ -285,6 +288,17 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<!-- Amend mojo-parent default config, avoiding errors concerning modules vs. unnamed module packages -->
<source>8</source>
<!-- Reproducible builds, https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
<notimestamp>true</notimestamp>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down Expand Up @@ -427,10 +441,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<!-- Amend mojo-parent default config, avoiding errors concerning modules vs. unnamed module packages -->
<source>8</source>
</configuration>
</plugin>
</plugins>
</reporting>
Expand Down

0 comments on commit a323cd2

Please sign in to comment.