Skip to content

Commit

Permalink
[incubator-kie-issues#1504] Conditionally build all or only reproduci…
Browse files Browse the repository at this point in the history
…ble modules based on only.reproducible flag - only for release build
  • Loading branch information
Gabriele-Cardosi committed Oct 2, 2024
1 parent a90f17e commit 015ad05
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 25 deletions.
4 changes: 3 additions & 1 deletion .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ pipeline {
}
if (isRelease()) {
release.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
mavenCommand.withProfiles(['apache-release'])
mavenCommand
.withProfiles(['apache-release'])
.withProperty('only.reproducible')
mavenRunClosure()
} else {
mavenRunClosure()
Expand Down
62 changes: 46 additions & 16 deletions jbpm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
42 changes: 34 additions & 8 deletions springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 015ad05

Please sign in to comment.