You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by gk...@apache.org on 2024/01/15 11:53:23 UTC
(turbine-core) 03/03: Allow reproducible builds with profile rv-builds, remove torque comment
This is an automated email from the ASF dual-hosted git repository.
gk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/turbine-core.git
commit 31acc8ba34e7476a6a695d5eee788cdb24137cee
Author: Georg Kallidis <gk...@apache.org>
AuthorDate: Mon Jan 15 12:51:29 2024 +0100
Allow reproducible builds with profile rv-builds, remove torque comment
---
pom.xml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 54 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6e54b03b..22c22091 100644
--- a/pom.xml
+++ b/pom.xml
@@ -568,8 +568,6 @@
<artifactId>torque-maven-plugin</artifactId>
<configuration>
<runOnlyOnSourceChange>true</runOnlyOnSourceChange>
- <!--targetDatabase>mysql</targetDatabase>
- <schemaDir>src/torque/schema</schemaDir-->
</configuration>
<executions>
<execution>
@@ -1303,6 +1301,59 @@
</dependency>
</dependencies>
</profile>
+ <profile>
+ <!-- allow reproducible / verifibable builds: build first and check with
+ mvn clean install -Prv-builds
+ mvn clean verify artifact:compare -Prv-builds
+ diffoscope ..
+ -->
+ <id>rv-builds</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.torque</groupId>
+ <artifactId>torque-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-om-scheduler-sources</id>
+ <configuration>
+ <options>
+ <!-- to allow for reproducible builds -->
+ <torque.om.addTimeStamp>false</torque.om.addTimeStamp>
+ </options>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- 1) to be moved to parent to get buildNumber in parent implemenation.build property
+ 2) requires no local midifications!
+ -->
+ <!--plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>3.1.0</version>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>create</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doCheck>true</doCheck>
+ <doUpdate>true</doUpdate>
+ </configuration>
+ </plugin-->
+ </plugins>
+ </build>
+ <properties>
+ <!-- allow for reproducible builds: should not be inherited but defined in POM for -->
+ <project.build.outputTimestamp>10</project.build.outputTimestamp>
+ <implementation.build>${scmBranch}@r${buildNumber};noTimeStamp</implementation.build>
+ <scmBranch>trunk</scmBranch>
+ </properties>
+ </profile>
</profiles>
<properties>
@@ -1313,7 +1364,7 @@
<fulcrum.security>3.0.0</fulcrum.security>
<fulcrum.yaafi>2.0.0</fulcrum.yaafi>
<torque.version>5.1</torque.version>
- <jackson2.version>2.15.3</jackson2.version>
+ <jackson2.version>2.16.1</jackson2.version>
<doclint>none</doclint>
<docker.testcontainers.version>1.18.3</docker.testcontainers.version>
<jacoco.skip>true</jacoco.skip>
@@ -1332,6 +1383,5 @@
</releases>
</repository>
</repositories>
-
</project>