Skip to content

Commit

Permalink
Fix timestamp for reproducible builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Aug 8, 2024
1 parent 3c85cc2 commit 3eff39a
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commons-numbers-angle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.angle</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>angle</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-arrays/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.arrays</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>arrays</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
<properties>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>

<!-- Skip the standard install and deploy to avoid processing this pom as the artifact. -->
<maven.install.skip>true</maven.install.skip>
Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-combinatorics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.combinatorics</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>combinatorics</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-complex-streams/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
<commons.osgi.export>org.apache.commons.numbers.complex.streams</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>complex-streams</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-complex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.complex</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>complex</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.core</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>core</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<animal.sniffer.skip>true</animal.sniffer.skip>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<!-- Skip the standard build plugins to avoid processing this 'jar' as an artifact. -->
<maven.resources.skip>true</maven.resources.skip>
<maven.source.skip>true</maven.source.skip>
Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<commons.module.name>org.apache.commons.numbers.examples</commons.module.name>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>examples</numbers.jira.component>

<!-- Disable JApiCmp failures (but keep the report). The examples API is allowed to change. -->
Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-field/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.field</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>field</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-fraction/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.fraction</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>fraction</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-gamma/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.gamma</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>gamma</numbers.jira.component>

<!-- Change from commons-parent of 1.0 as some complex branches are not exhaustively reached -->
Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-primes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.primes</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>primes</numbers.jira.component>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-quaternion/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.quaternion</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>quaternion</numbers.jira.component>

<!-- Change from commons-parent of 1.0 as enumeration default cases cannot be reached -->
Expand Down
2 changes: 2 additions & 0 deletions commons-numbers-rootfinder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<commons.osgi.export>org.apache.commons.numbers.rootfinder</commons.osgi.export>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}/..</numbers.parent.dir>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<numbers.jira.component>rootfinder</numbers.jira.component>

<!-- Change from commons-parent of 1.0 as one floating-point edge case is not reached -->
Expand Down
3 changes: 3 additions & 0 deletions dist-archive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ under the License.
<description>This module creates the Apache Commons Numbers distribution.</description>

<properties>
<!-- Reproducible builds -->
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>

<checkstyle.skip>true</checkstyle.skip>
<animal.sniffer.skip>true</animal.sniffer.skip>
<!-- Commons Release Plugin -->
Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
<commons.osgi.export>org.apache.commons.numbers</commons.osgi.export>
<!-- This flag should only be true in the dist-archive module. -->
<commons.release.isDistModule>false</commons.release.isDistModule>
<!-- Reproducible builds: maven-artifact-plugin:check-buildplan -->
<numbers.build.outputTimestamp>2024-08-08T00:00:00Z</numbers.build.outputTimestamp>
<project.build.outputTimestamp>${numbers.build.outputTimestamp}</project.build.outputTimestamp>
<!-- do not use snapshot suffix here -->
<commons.release.version>1.2</commons.release.version>
<commons.bc.version>1.1</commons.bc.version>
Expand Down

0 comments on commit 3eff39a

Please sign in to comment.