This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-statistics.git
The following commit(s) were added to refs/heads/master by this push: new 0b6bd0e Fix timestamp for reproducible builds 0b6bd0e is described below commit 0b6bd0e567fdc50a32a291e2d5c442211ef7c969 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Thu Aug 8 16:15:16 2024 +0100 Fix timestamp for reproducible builds --- commons-statistics-bom/pom.xml | 2 ++ commons-statistics-descriptive/pom.xml | 2 ++ commons-statistics-distribution/pom.xml | 2 ++ commons-statistics-docs/pom.xml | 2 ++ commons-statistics-examples/examples-distribution/pom.xml | 2 ++ commons-statistics-examples/examples-jmh/pom.xml | 2 ++ commons-statistics-examples/pom.xml | 2 ++ commons-statistics-inference/pom.xml | 2 ++ commons-statistics-ranking/pom.xml | 2 ++ commons-statistics-regression/pom.xml | 2 ++ dist-archive/pom.xml | 3 +++ pom.xml | 3 +++ 12 files changed, 26 insertions(+) diff --git a/commons-statistics-bom/pom.xml b/commons-statistics-bom/pom.xml index d52febf..a5ba6f0 100644 --- a/commons-statistics-bom/pom.xml +++ b/commons-statistics-bom/pom.xml @@ -51,6 +51,8 @@ <properties> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.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> diff --git a/commons-statistics-descriptive/pom.xml b/commons-statistics-descriptive/pom.xml index 06dd6cc..f356015 100644 --- a/commons-statistics-descriptive/pom.xml +++ b/commons-statistics-descriptive/pom.xml @@ -39,6 +39,8 @@ <commons.module.name>org.apache.commons.statistics.descriptive</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <statistics.jira.component>descriptive</statistics.jira.component> <!-- Change from commons-parent of 1.0 as some illegal state cases cannot be reached --> diff --git a/commons-statistics-distribution/pom.xml b/commons-statistics-distribution/pom.xml index 72aa260..39acc8b 100644 --- a/commons-statistics-distribution/pom.xml +++ b/commons-statistics-distribution/pom.xml @@ -37,6 +37,8 @@ <commons.module.name>org.apache.commons.statistics.distribution</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <statistics.jira.component>distribution</statistics.jira.component> </properties> diff --git a/commons-statistics-docs/pom.xml b/commons-statistics-docs/pom.xml index d49c73e..034d063 100644 --- a/commons-statistics-docs/pom.xml +++ b/commons-statistics-docs/pom.xml @@ -37,6 +37,8 @@ <animal.sniffer.skip>true</animal.sniffer.skip> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.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> diff --git a/commons-statistics-examples/examples-distribution/pom.xml b/commons-statistics-examples/examples-distribution/pom.xml index ef70317..c51d1a7 100644 --- a/commons-statistics-examples/examples-distribution/pom.xml +++ b/commons-statistics-examples/examples-distribution/pom.xml @@ -39,6 +39,8 @@ <commons.module.name>org.apache.commons.statistics.examples.distribution</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/../..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <uberjar.name>examples-distribution</uberjar.name> <project.mainClass>org.apache.commons.statistics.examples.distribution.DistributionsApplication</project.mainClass> diff --git a/commons-statistics-examples/examples-jmh/pom.xml b/commons-statistics-examples/examples-jmh/pom.xml index 902eaf5..b545f47 100644 --- a/commons-statistics-examples/examples-jmh/pom.xml +++ b/commons-statistics-examples/examples-jmh/pom.xml @@ -98,6 +98,8 @@ <commons.module.name>org.apache.commons.statistics.examples.jmh</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/../..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <!-- JDK 11+ required for Math.multiplyHigh --> <maven.compiler.source>11</maven.compiler.source> diff --git a/commons-statistics-examples/pom.xml b/commons-statistics-examples/pom.xml index 16603c6..65bce0b 100644 --- a/commons-statistics-examples/pom.xml +++ b/commons-statistics-examples/pom.xml @@ -41,6 +41,8 @@ <commons.module.name>org.apache.commons.statistics.examples</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <statistics.picocli.version>4.7.6</statistics.picocli.version> <statistics.exec.version>3.3.0</statistics.exec.version> diff --git a/commons-statistics-inference/pom.xml b/commons-statistics-inference/pom.xml index f9bf483..48439cd 100644 --- a/commons-statistics-inference/pom.xml +++ b/commons-statistics-inference/pom.xml @@ -39,6 +39,8 @@ <commons.module.name>org.apache.commons.statistics.inference</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <statistics.jira.component>inference</statistics.jira.component> <!-- Change from commons-parent of 1.0 as some illegal state cases cannot be reached --> diff --git a/commons-statistics-ranking/pom.xml b/commons-statistics-ranking/pom.xml index e1b3168..cb609a9 100644 --- a/commons-statistics-ranking/pom.xml +++ b/commons-statistics-ranking/pom.xml @@ -39,6 +39,8 @@ <commons.module.name>org.apache.commons.statistics.ranking</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <statistics.jira.component>ranking</statistics.jira.component> <!-- Change from commons-parent of 1.0 as some illegal state cases cannot be reached --> diff --git a/commons-statistics-regression/pom.xml b/commons-statistics-regression/pom.xml index 5df59a2..2f2de86 100644 --- a/commons-statistics-regression/pom.xml +++ b/commons-statistics-regression/pom.xml @@ -37,6 +37,8 @@ <commons.module.name>org.apache.commons.statistics.regression</commons.module.name> <!-- Workaround to avoid duplicating config files. --> <statistics.parent.dir>${basedir}/..</statistics.parent.dir> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <statistics.jira.component>regression</statistics.jira.component> </properties> diff --git a/dist-archive/pom.xml b/dist-archive/pom.xml index 98a9112..3e89f24 100644 --- a/dist-archive/pom.xml +++ b/dist-archive/pom.xml @@ -32,6 +32,9 @@ under the License. <description>This module creates the Apache Commons Statistics distribution.</description> <properties> + <!-- Reproducible builds --> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> + <checkstyle.skip>true</checkstyle.skip> <animal.sniffer.skip>true</animal.sniffer.skip> <!-- Commons Release Plugin --> diff --git a/pom.xml b/pom.xml index cd3d981..edfe50f 100644 --- a/pom.xml +++ b/pom.xml @@ -96,6 +96,9 @@ <commons.module.name>org.apache.commons.statistics</commons.module.name> <!-- 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 --> + <statistics.build.outputTimestamp>2024-08-08T00:00:00Z</statistics.build.outputTimestamp> + <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp> <!-- do not use snapshot suffix here --> <commons.release.version>1.1</commons.release.version> <commons.bc.version>1.0</commons.bc.version>