This is an automated email from the ASF dual-hosted git repository.

mariofusco pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-optaplanner.git


The following commit(s) were added to refs/heads/main by this push:
     new 3a817c2e40 Reproducible build (#3057)
3a817c2e40 is described below

commit 3a817c2e4096c90b3c83f20e1ba7c13e88df846e
Author: Luca Molteni <[email protected]>
AuthorDate: Wed Jan 24 14:12:27 2024 +0100

    Reproducible build (#3057)
    
    addded timestamp
    added maven-artifact-plugin
    
    Still failing with
    
    `mvn artifact:check-buildplan`
---
 pom.xml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/pom.xml b/pom.xml
index 1fd7d393ed..b3a06b4206 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>
@@ -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>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to