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-apps.git


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

commit a89babe5b237523a7da5e173c047ce55d1c510ee
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Mon Jun 24 16:27:08 2024 +0200

    [incubator-kie-issues#1349] Enforce reproducible build (#2075)
    
    Co-authored-by: Gabriele-Cardosi <[email protected]>
---
 .github/workflows/pr-kogito-apps.yml |  2 +-
 pom.xml                              | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pr-kogito-apps.yml 
b/.github/workflows/pr-kogito-apps.yml
index 0453d8bf2..27bcbc142 100644
--- a/.github/workflows/pr-kogito-apps.yml
+++ b/.github/workflows/pr-kogito-apps.yml
@@ -62,7 +62,7 @@ jobs:
         uses: 
apache/incubator-kie-kogito-pipelines/.ci/actions/build-chain@main
         env:
           NODE_OPTIONS: "--max_old_space_size=4096"
-          BUILD_MVN_OPTS_CURRENT: '-Dvalidate-formatting'
+          BUILD_MVN_OPTS_CURRENT: '-Dreproducible -Dvalidate-formatting'
         with:
           definition-file: 
https://raw.githubusercontent.com/${GROUP:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/pull-request-config.yaml
           annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ 
matrix.maven-version }}
diff --git a/pom.xml b/pom.xml
index f7c7f2d32..554fc1875 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,5 +155,41 @@
         <module>jitexecutor-native</module>
       </modules>
     </profile>
+    <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