ARTEMIS-4054: have release plugin autoVersionSubmodules, and configure the tagNameFormat to simplify setting release tag

This commit is contained in:
Robbie Gemmell 2022-10-17 15:45:01 +01:00
parent d6ec80d8f1
commit a6e69aaccf
2 changed files with 15 additions and 7 deletions

View File

@ -58,25 +58,25 @@ This should be the same `user.email` and `user.name` you use on your main reposi
You will have to use this following maven command to perform the release:
```sh
mvn clean release:prepare -DautoVersionSubmodules=true -Prelease
mvn clean release:prepare -Prelease
```
You could optionally set `pushChanges=false` so the version commit and tag won't be pushed upstream (you would have to do it yourself):
```sh
mvn clean release:prepare -DautoVersionSubmodules=true -DpushChanges=false -Prelease
mvn clean release:prepare -DpushChanges=false -Prelease
```
When prompted make sure the next is a major release. Example:
When prompted make sure the new development version matches with the next expected release, rather than the offered patch release. Example:
```
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for "ActiveMQ Artemis Parent"? (org.apache.activemq:artemis-pom) 2.19.0: :
What is SCM release tag or label for "ActiveMQ Artemis Parent"? (org.apache.activemq:artemis-pom) artemis-pom-2.19.0: : 2.19.0
What is the new development version for "ActiveMQ Artemis Parent"? (org.apache.activemq:artemis-pom) 2.19.1-SNAPSHOT: : 2.20.0-SNAPSHOT
What is the release version for "ActiveMQ Artemis Parent"? (artemis-pom) 2.27.0: :
What is the SCM release tag or label for "ActiveMQ Artemis Parent"? (artemis-pom) 2.27.0: :
What is the new development version for "ActiveMQ Artemis Parent"? (artemis-pom) 2.27.1-SNAPSHOT: : 2.28.0-SNAPSHOT
```
Otherwise snapshots will be created at 2.19.1-SNAPSHOT and forgotten. (Unless we ever release 2.19.1 on that example).
Otherwise snapshots would be created at 2.27.1-SNAPSHOT and left to go stale rather than get cleaned out if the next release is actually 2.28.0. (Unless we did ever release 2.27.1 in that example).
For more information look at the prepare plugin:

View File

@ -1737,6 +1737,14 @@
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</pluginManagement>