Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid deploying redundant modules during the release #6320

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>