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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7052421c2e [incubator-kie-issues#1504] Conditionally build all or only 
reproducible modules based on only.reproducible flag (#6108)
7052421c2e is described below

commit 7052421c2e7bfabbd6d927e30ba5d2c64dddaeeb
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Wed Oct 2 18:40:29 2024 +0200

    [incubator-kie-issues#1504] Conditionally build all or only reproducible 
modules based on only.reproducible flag (#6108)
    
    * [incubator-kie-issues#1504] Conditionally build all or only reproducible 
modules based on only.reproducible flag
    
    * [incubator-kie-issues#1504] Conditionally build all or only reproducible 
modules based on only.reproducible flag - only for release build
    
    ---------
    
    Co-authored-by: Gabriele-Cardosi <[email protected]>
---
 .ci/jenkins/Jenkinsfile.deploy  |  4 +++-
 drools-drlonyaml-parent/pom.xml | 44 +++++++++++++++++++++++++++++++++--------
 2 files changed, 39 insertions(+), 9 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 22bfc61114..9d95c6b324 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -135,7 +135,9 @@ pipeline {
 
                         if (isRelease()) {
                             
release.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
-                            mavenCommand.withProfiles(['apache-release'])
+                            mavenCommand
+                            .withProfiles(['apache-release'])
+                            .withProperty('only.reproducible')
                             mavenRunClosure()
                         } else {
                             mavenRunClosure()
diff --git a/drools-drlonyaml-parent/pom.xml b/drools-drlonyaml-parent/pom.xml
index dc5f742ac8..9976e1ecbf 100644
--- a/drools-drlonyaml-parent/pom.xml
+++ b/drools-drlonyaml-parent/pom.xml
@@ -30,12 +30,40 @@
   <artifactId>drools-drlonyaml-parent</artifactId>
   <name>Drools :: DRL on YAML</name>
   <packaging>pom</packaging>
-  <modules>
-    <module>drools-drlonyaml-schemagen</module>
-    <module>drools-drlonyaml-model</module>
-    <module>drools-drlonyaml-todrl</module>
-    <module>drools-drlonyaml-cli</module>
-    <module>drools-drlonyaml-cli-tests</module>
-    <module>drools-drlonyaml-integration-tests</module>
-  </modules>
+
+  <profiles>
+    <profile>
+      <id>allSubmodules</id>
+      <activation>
+      <property>
+        <name>!only.reproducible</name>
+      </property>
+      </activation>
+      <modules>
+        <module>drools-drlonyaml-schemagen</module>
+        <module>drools-drlonyaml-model</module>
+        <module>drools-drlonyaml-todrl</module>
+        <module>drools-drlonyaml-cli</module>
+        <module>drools-drlonyaml-cli-tests</module>
+        <module>drools-drlonyaml-integration-tests</module>
+      </modules>
+    </profile>
+
+    <profile>
+      <id>onlyReproducible</id>
+      <activation>
+        <property>
+          <name>only.reproducible</name>
+        </property>
+      </activation>
+      <modules>
+        <module>drools-drlonyaml-schemagen</module>
+        <module>drools-drlonyaml-model</module>
+        <module>drools-drlonyaml-todrl</module>
+        <module>drools-drlonyaml-cli</module>
+        <module>drools-drlonyaml-cli-tests</module>
+      </modules>
+    </profile>
+  </profiles>
+
 </project>


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

Reply via email to