This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new efb89b0eb0 [incubator-kie-issues#1504] Conditionally build all or only
reproducible modules based on only.reproducible flag (#6108) (#6109)
efb89b0eb0 is described below
commit efb89b0eb0ad68315bdfb765fc8001433d8c0326
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Wed Oct 2 15:53:09 2024 -0300
[incubator-kie-issues#1504] Conditionally build all or only reproducible
modules based on only.reproducible flag (#6108) (#6109)
* [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]>
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 b3d950ac95..4d4cca2928 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -129,7 +129,9 @@ pipeline {
if (isRelease()) {
releaseUtils.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
- mavenCommand.withProfiles(['apache-release'])
+ mavenCommand
+ .withProfiles(['apache-release'])
+ .withProperty('only.reproducible')
}
configFileProvider([configFile(fileId:
env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]) {
diff --git a/drools-drlonyaml-parent/pom.xml b/drools-drlonyaml-parent/pom.xml
index 94361050a5..56cd0664e4 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]