GH-61 - Include all modules in release preparations.

Added dedicated prepare-release profile to make sure that all modules get their versions updated on mvn release:prepare. This is required to make sure the tag lands on a commit that especially has the distribution module updated so that the documentation publication actually produces the artifacts for the released version.
This commit is contained in:
Oliver Drotbohm
2022-11-02 17:35:04 +01:00
parent b4b7986525
commit 3b12093589
2 changed files with 13 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
[source] [source]
---- ----
./mvnw release:prepare \ ./mvnw release:prepare \
-Pprepare-release \
-DreleaseVersion="${version}" \ -DreleaseVersion="${version}" \
-DdevelopmentVersion="${devVersion}" \ -DdevelopmentVersion="${devVersion}" \
-DscmReleaseCommitComment="${ticketId} - Release version ${version}." \ -DscmReleaseCommitComment="${ticketId} - Release version ${version}." \

12
pom.xml
View File

@@ -96,6 +96,18 @@ limitations under the License.
</profile> </profile>
<profile>
<id>prepare-release</id>
<modules>
<module>spring-modulith-distribution</module>
<module>spring-modulith-example</module>
<module>spring-modulith-integration-test</module>
</modules>
</profile>
<profile> <profile>
<id>ci</id> <id>ci</id>