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 (apache#3687)

Co-authored-by: Gabriele-Cardosi <[email protected]>
# Conflicts:
#	.ci/jenkins/Jenkinsfile.deploy
  • Loading branch information
rgdoliveira committed Oct 3, 2024
1 parent e5a4278 commit f2ca753
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 24 deletions.
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 f2ca753

Please sign in to comment.