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

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


The following commit(s) were added to refs/heads/main by this push:
     new dab18f1541 [incubator-kie-issues#1348] Enforce reproducible build 
(#3564)
dab18f1541 is described below

commit dab18f15412a97e630331bf29b1e6c431a9cf11d
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Mon Jun 24 16:52:48 2024 +0200

    [incubator-kie-issues#1348] Enforce reproducible build (#3564)
    
    * [incubator-kie-issues#1348] Enforce reproducible build
    
    * [incubator-kie-issues#1348] Enforce reproducible build - using custom 
property
    
    ---------
    
    Co-authored-by: Gabriele-Cardosi <[email protected]>
---
 .github/workflows/pr-kogito-runtimes.yml |  2 +-
 pom.xml                                  | 39 ++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pr-kogito-runtimes.yml 
b/.github/workflows/pr-kogito-runtimes.yml
index 7ef84970c9..0114e83594 100644
--- a/.github/workflows/pr-kogito-runtimes.yml
+++ b/.github/workflows/pr-kogito-runtimes.yml
@@ -65,7 +65,7 @@ jobs:
           github-token: "${{ secrets.GITHUB_TOKEN }}"
           definition-file: 
https://raw.githubusercontent.com/${GROUP:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/pull-request-config.yaml
         env:
-          BUILD_MVN_OPTS_CURRENT: '-T 1.5C -Dvalidate-formatting'
+          BUILD_MVN_OPTS_CURRENT: '-Dreproducible -Dvalidate-formatting'
       - name: Junit Report
         uses: 
apache/incubator-kie-kogito-pipelines/.ci/actions/action-junit-report@main
         if: ${{ always() }}
diff --git a/pom.xml b/pom.xml
index d4a05d4f29..51c1a4f9b5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -165,4 +165,43 @@
     <module>springboot</module>
   </modules>
 
+  <profiles>
+    <profile>
+      <id>reproducible-build</id>
+      <activation>
+        <property>
+          <name>reproducible</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-artifact-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>check-buildplan</id>
+                <goals>
+                  <goal>check-buildplan</goal>
+                </goals>
+                <!-- The execution's configuration is part of the 
pluginManagement. This piece here only makes sure the
+                     execution is enabled (by specifying a phase) for full 
profile builds. -->
+                <phase>validate</phase>
+              </execution>
+              <execution>
+                <id>compare</id>
+                <goals>
+                  <goal>compare</goal>
+                </goals>
+                <!-- The execution's configuration is part of the 
pluginManagement. This piece here only makes sure the
+                     execution is enabled (by specifying a phase) for full 
profile builds. -->
+                <phase>install</phase>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>


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

Reply via email to