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

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

commit a451a1f5bc21468ce72aed38e068bb8645a4a698
Author: Gabriele-Cardosi <[email protected]>
AuthorDate: Mon Jun 24 12:32:46 2024 +0200

    [incubator-kie-issues#1348] Enforce reproducible build
---
 .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..7f4f97d549 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: '-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..af34219cc1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -165,4 +165,43 @@
     <module>springboot</module>
   </modules>
 
+  <profiles>
+    <profile>
+      <id>reproducible-build</id>
+      <activation>
+        <property>
+          <name>full</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