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-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new d679d3db24 [incubator-kie-issues#1504] Conditionally build all or only
reproducible modules based on only.reproducible flag - only for release build
(#3687)
d679d3db24 is described below
commit d679d3db24b857dbcf6c20b376a8e2ef07848a5f
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Wed Oct 2 18:40:25 2024 +0200
[incubator-kie-issues#1504] Conditionally build all or only reproducible
modules based on only.reproducible flag - only for release build (#3687)
Co-authored-by: Gabriele-Cardosi <[email protected]>
---
.ci/jenkins/Jenkinsfile.deploy | 4 ++-
jbpm/pom.xml | 62 +++++++++++++++++++++++++++++++-----------
springboot/pom.xml | 42 ++++++++++++++++++++++------
3 files changed, 83 insertions(+), 25 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 8e3058499b..7a3a6be7c7 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -160,7 +160,9 @@ pipeline {
}
if (isRelease()) {
release.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
- mavenCommand.withProfiles(['apache-release'])
+ mavenCommand
+ .withProfiles(['apache-release'])
+ .withProperty('only.reproducible')
mavenRunClosure()
} else {
mavenRunClosure()
diff --git a/jbpm/pom.xml b/jbpm/pom.xml
index 9f31c94d8a..b5638d6be7 100755
--- a/jbpm/pom.xml
+++ b/jbpm/pom.xml
@@ -20,26 +20,34 @@
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
+ <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.kie.kogito</groupId>
- <artifactId>kogito-build-parent</artifactId>
- <version>999-SNAPSHOT</version>
-
<relativePath>../kogito-build/kogito-build-parent/pom.xml</relativePath>
+ <parent>
+ <groupId>org.kie.kogito</groupId>
+ <artifactId>kogito-build-parent</artifactId>
+ <version>999-SNAPSHOT</version>
+ <relativePath>../kogito-build/kogito-build-parent/pom.xml</relativePath>
- </parent>
+ </parent>
- <artifactId>jbpm</artifactId>
- <packaging>pom</packaging>
- <name>Kogito :: jBPM</name>
- <description>jBPM: a Business Process Management</description>
- <url>http://www.jbpm.org</url>
+ <artifactId>jbpm</artifactId>
+ <packaging>pom</packaging>
+ <name>Kogito :: jBPM</name>
+ <description>jBPM: a Business Process Management</description>
+ <url>http://www.jbpm.org</url>
- <modules>
+ <profiles>
+ <profile>
+ <id>allSubmodules</id>
+ <activation>
+ <property>
+ <name>!only.reproducible</name>
+ </property>
+ </activation>
+ <modules>
<module>jbpm-flow</module>
<module>jbpm-flow-builder</module>
<module>jbpm-bpmn2</module>
@@ -50,6 +58,28 @@
<module>jbpm-tools</module>
<module>jbpm-tests</module>
<module>jbpm-deps-groups</module>
- </modules>
+ </modules>
+ </profile>
+
+ <profile>
+ <id>onlyReproducible</id>
+ <activation>
+ <property>
+ <name>only.reproducible</name>
+ </property>
+ </activation>
+ <modules>
+ <module>jbpm-flow</module>
+ <module>jbpm-flow-builder</module>
+ <module>jbpm-bpmn2</module>
+ <module>jbpm-flow-migration</module>
+ <module>process-serialization-protobuf</module>
+ <module>process-workitems</module>
+ <module>jbpm-usertask</module>
+ <module>jbpm-tools</module>
+ <module>jbpm-deps-groups</module>
+ </modules>
+ </profile>
+ </profiles>
</project>
diff --git a/springboot/pom.xml b/springboot/pom.xml
index 84d9abd27d..0e7a0f4231 100644
--- a/springboot/pom.xml
+++ b/springboot/pom.xml
@@ -34,13 +34,39 @@
<name>Kogito :: Spring Boot</name>
<packaging>pom</packaging>
- <modules>
- <module>bom</module>
- <module>addons</module>
- <module>starters</module>
- <module>archetype</module>
- <module>test</module>
- <module>integration-tests</module>
- </modules>
+ <profiles>
+ <profile>
+ <id>allSubmodules</id>
+ <activation>
+ <property>
+ <name>!only.reproducible</name>
+ </property>
+ </activation>
+ <modules>
+ <module>bom</module>
+ <module>addons</module>
+ <module>starters</module>
+ <module>archetype</module>
+ <module>test</module>
+ <module>integration-tests</module>
+ </modules>
+ </profile>
+
+ <profile>
+ <id>onlyReproducible</id>
+ <activation>
+ <property>
+ <name>only.reproducible</name>
+ </property>
+ </activation>
+ <modules>
+ <module>bom</module>
+ <module>addons</module>
+ <module>starters</module>
+ <module>archetype</module>
+ <module>test</module>
+ </modules>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]