Skip to content

Commit ca98a7e

Browse files
authored
Simplify getting project version in release script (#4235)
1 parent 382184e commit ca98a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/release/000-run-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ UserSpecificDocker
5656

5757
BOOKKEEPER_ROOT=${SCRIPT_DIR}/../..
5858

59-
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/'`
59+
VERSION=`cd $BOOKKEEPER_ROOT && mvn initialize help:evaluate -Dexpression=project.version -pl . -q -DforceStdout | grep -Ev '(^\[|Download\w+:)' | sed 's/^\(.*\)-SNAPSHOT/\1/'`
6060
versions_list=(`echo $VERSION | tr '.' ' '`)
6161
major_version=${versions_list[0]}
6262
minor_version=${versions_list[1]}

0 commit comments

Comments
 (0)