Skip to content

Commit

Permalink
Avoid deploying redundant modules during the release
Browse files Browse the repository at this point in the history
Fixes #5887
  • Loading branch information
jamesnetherton committed Aug 6, 2024
1 parent eac4927 commit 18f1a30
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $ cd target/checkout
+
[source,shell]
----
mvn deploy -Papache-release -DskipTests -Denforcer.skip -Dquarkus.build.skip -Dformatter.skip -Dimpsort.skip -rf :camel-quarkus-openapi-java
mvn deploy -Dapache-release -DskipTests -Denforcer.skip -Dquarkus.build.skip -Dformatter.skip -Dimpsort.skip -rf :camel-quarkus-openapi-java
----

== Close the Apache staging repository
Expand Down
27 changes: 19 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@
<camel-quarkus.extension.finder.strict>true</camel-quarkus.extension.finder.strict>
</properties>

<!-- Core modules -->
<!-- Any modules that do not need to be deployed during the Maven release, should be added to the 'standard-build' profile below -->
<modules>
<module>poms</module>
<module>tooling</module>
Expand All @@ -288,9 +290,6 @@
<module>catalog</module>
<module>integration-tests-support</module>
<module>integration-tests</module>
<module>integration-test-groups</module>
<module>docs</module>
<module>integration-tests-jvm</module>
<module>test-framework</module>
</modules>

Expand Down Expand Up @@ -408,14 +407,13 @@
<version>${maven-release-plugin.version}</version>
<configuration>
<!-- release:prepare config -->
<preparationGoals>clean validate -Pcommit-release-changes "-Dcq.commit.message.prefix=[maven-release-plugin] Prepare release" -N</preparationGoals>
<completionGoals>clean validate -Pcommit-release-changes "-Dcq.commit.message.prefix=[maven-release-plugin] Set next development version" -N</completionGoals>
<preparationGoals>clean validate -Pstandard-build -Pcommit-release-changes "-Dcq.commit.message.prefix=[maven-release-plugin] Prepare release" -N</preparationGoals>
<completionGoals>clean validate -Pstandard-build -Pcommit-release-changes "-Dcq.commit.message.prefix=[maven-release-plugin] Set next development version" -N</completionGoals>
<!-- release:perform config -->
<useReleaseProfile>true</useReleaseProfile>
<releaseProfiles>apache-release</releaseProfiles>
<releaseProfiles combine.self="override"/>
<goals>deploy</goals>
<!-- Both release:prepare and release:perform config -->
<arguments>-DskipTests -Denforcer.skip -Dquarkus.build.skip -Dformatter.skip -Dimpsort.skip</arguments>
<arguments>-Dapache-release -DskipTests -Denforcer.skip -Dquarkus.build.skip -Dformatter.skip -Dimpsort.skip</arguments>
</configuration>
</plugin>

Expand Down Expand Up @@ -1056,6 +1054,19 @@
</plugins>
</build>
</profile>
<profile>
<id>standard-build</id>
<activation>
<property>
<name>!apache-release</name>
</property>
</activation>
<modules>
<module>docs</module>
<module>integration-test-groups</module>
<module>integration-tests-jvm</module>
</modules>
</profile>
<profile>
<id>apache-release</id>
<activation>
Expand Down
15 changes: 14 additions & 1 deletion tooling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<module>maven-plugin</module>
<module>camel-k-catalog-model</module>
<module>camel-k-maven-plugin</module>
<module>perf-regression</module>
<module>test-list</module>
</modules>

Expand All @@ -54,4 +53,18 @@
</dependency>
</dependencies>
</dependencyManagement>

<profiles>
<profile>
<id>standard-build</id>
<activation>
<property>
<name>!apache-release</name>
</property>
</activation>
<modules>
<module>perf-regression</module>
</modules>
</profile>
</profiles>
</project>

0 comments on commit 18f1a30

Please sign in to comment.