You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2025/09/15 15:11:41 UTC
(sling-ide-tooling) 03/08: chore: start implementing make release
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 f9fc39a343cca546831e03346b6d0a036d6a96e6
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Sep 15 16:53:12 2025 +0200
chore: start implementing make release
---
Makefile | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..aff1f9ca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,39 @@
+# fail if RELEASE_VERSION or NEXT_VERSION is not set
+ifndef RELEASE_VERSION
+$(error RELEASE_VERSION is not set)
+endif
+
+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
+.PHONY=release
+
+# ensure that GPG signing will work in batch mode
+check-gpg:
+ gpg --sign README.md
+ 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
+
+.PHONY=pre-release-shared
+
+pre-release-eclipse:
+.PHONY=pre-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