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

rombert pushed a commit to branch issue/SLING-8307-2
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git

commit 7c4781fcf19c5bf401020fd0eaf58ed321b55eba
Author: Robert Munteanu <[email protected]>
AuthorDate: Mon Sep 15 17:09:18 2025 +0200

    chore(eclipse): prepare release flow
---
 Makefile        | 24 ++++++++----------------
 eclipse/pom.xml | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 16 deletions(-)

diff --git a/Makefile b/Makefile
index aff1f9ca..961e6e0a 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ ifndef NEXT_VERSION
 $(error NEXT_VERSION is not set)
 endif
 
-release: check-gpg pre-release-shared pre-release-eclipse push 
post-release-shared post-release-eclipse
+release: check-gpg release-shared release-eclipse push 
 .PHONY=release
 
 # ensure that GPG signing will work in batch mode
@@ -16,24 +16,16 @@ check-gpg:
        rm -f README.md.gpg
 .PHONY=check-gpg
 
-pre-release-shared:
-       cd shared && mvn --batch-mode release:prepare -DdryRun=true 
-DreleaseVersion=$(RELEASE_VERSION) -DdevelopmentVersion=$(NEXT_VERSION)
-       cd shared && mvn --batch-mode versions:set 
-DnewVersion=$(RELEASE_VERSION) -DprocessAllModules=true 
-DgenerateBackupPoms=false
-       cd shared && git add pom.xml '**/pom.xml' && git commit -m 
'chore(shared): prepare release $(RELEASE_VERSION)'
-       cd shared && mvn --batch-mode clean install -DskipTests
+release-shared:
+       cd shared && mvn --batch-mode release:prepare 
-DreleaseVersion=$(RELEASE_VERSION) -DdevelopmentVersion=$(NEXT_VERSION) 
-Dtag=sling-ide-tooling-shared-$(RELEASE_VERSION)
 
-.PHONY=pre-release-shared
+.PHONY=release-shared
 
-pre-release-eclipse:
-.PHONY=pre-release-eclipse
+release-eclipse:
+       cd eclipse && mvn --batch-mode release:prepare 
-DreleaseVersion=$(RELEASE_VERSION) -DdevelopmentVersion=$(NEXT_VERSION) 
-Dtag=sling-ide-tooling-eclipse-$(RELEASE_VERSION)
+
+.PHONY=release-eclipse
 
 push:
 .PHONY=push
 
-post-release-shared:
-       cd shared && mvn --batch-mode versions:set -DnewVersion=$(NEXT_VERSION) 
-DprocessAllModules=true -DgenerateBackupPoms=false
-       cd shared && git add pom.xml '**/pom.xml' && git commit -m 
'chore(shared): bump version to $(NEXT_VERSION)'
-.PHONY=post-release-shared
-
-post-release-eclipse:
-.PHONY=post-release-eclipse
diff --git a/eclipse/pom.xml b/eclipse/pom.xml
index 14814d1d..4378088e 100644
--- a/eclipse/pom.xml
+++ b/eclipse/pom.xml
@@ -131,6 +131,38 @@
                     </excludes>
                 </configuration>
             </plugin>
+            <plugin>
+                <!-- When releasing we build the modules locally and include 
them in the p2 repository
+                but we do not release them on Maven Central. To be revisited 
if needed -->
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-release-plugin</artifactId>
+                <configuration>
+                    <goals>clean install</goals>
+                    <pushChanges>false</pushChanges>
+                    <autoVersionSubmodules>true</autoVersionSubmodules>
+                    <!-- See https://wiki.eclipse.org/Tycho/Release_Workflow 
-->
+                    
<preparationGoals>org.eclipse.tycho:tycho-versions-plugin:${tycho.version}:update-eclipse-metadata
 org.apache.maven.plugins:maven-scm-plugin:1.9.5:add 
org.apache.maven.plugins:maven-scm-plugin:1.9.5:checkin</preparationGoals>
+                    
<completionGoals>org.eclipse.tycho:tycho-versions-plugin:${tycho.version}:update-eclipse-metadata
 org.apache.maven.plugins:maven-scm-plugin:1.9.5:add 
org.apache.maven.plugins:maven-scm-plugin:1.9.5:checkin</completionGoals>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-scm-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>default-cli</id>
+                        <goals>
+                            <goal>add</goal>
+                            <goal>checkin</goal>
+                        </goals>
+                        <configuration>
+                            
<includes>**/META-INF/MANIFEST.MF,**/feature.xml,**/*.product,**/category.xml</includes>
+                            <excludes>**/target/**</excludes>
+                            <message>chore: change the version to reflect the 
pom versions for the release</message>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
         <pluginManagement>
             <plugins>

Reply via email to