You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2022/10/17 14:46:30 UTC

[activemq-artemis] branch main updated: ARTEMIS-4054: have release plugin autoVersionSubmodules, and configure the tagNameFormat to simplify setting release tag

This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new a6e69aaccf ARTEMIS-4054: have release plugin autoVersionSubmodules, and configure the tagNameFormat to simplify setting release tag
a6e69aaccf is described below

commit a6e69aaccf40f13c8b30e04059ae3f8f1bb2588c
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Mon Oct 17 15:45:01 2022 +0100

    ARTEMIS-4054: have release plugin autoVersionSubmodules, and configure the tagNameFormat to simplify setting release tag
---
 RELEASING.md | 14 +++++++-------
 pom.xml      |  8 ++++++++
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/RELEASING.md b/RELEASING.md
index 439520675c..b1480f77f5 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -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:
 
diff --git a/pom.xml b/pom.xml
index 9a5a482ec2..62a2fb3cb2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>