You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by lh...@apache.org on 2024/06/13 11:36:58 UTC
(bookkeeper) 01/04: Simplify getting project version in release script (#4235)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-4.15
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
commit 32ad52e42df6eeb0b284cf6c4368d806d66e9bab
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Thu Mar 21 03:01:50 2024 -0700
Simplify getting project version in release script (#4235)
(cherry picked from commit ca98a7e482987a3e6daaf9763c0794dde1753598)
(cherry picked from commit 8407f9635839db5db2af09c75198b41f766912c7)
---
dev/release/000-run-docker.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/release/000-run-docker.sh b/dev/release/000-run-docker.sh
index 7854dc49dd..ab7a313d44 100755
--- a/dev/release/000-run-docker.sh
+++ b/dev/release/000-run-docker.sh
@@ -56,7 +56,7 @@ UserSpecificDocker
BOOKKEEPER_ROOT=${SCRIPT_DIR}/../..
-VERSION=`cd $BOOKKEEPER_ROOT && mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|Download\w+:)' | sed 's/^\(.*\)-SNAPSHOT/\1/'`
+VERSION=`cd $BOOKKEEPER_ROOT && mvn initialize help:evaluate -Dexpression=project.version -pl . -q -DforceStdout | grep -Ev '(^\[|Download\w+:)' | sed 's/^\(.*\)-SNAPSHOT/\1/'`
versions_list=(`echo $VERSION | tr '.' ' '`)
major_version=${versions_list[0]}
minor_version=${versions_list[1]}