We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f2e2b commit 8e79f3bCopy full SHA for 8e79f3b
release-version.sh
@@ -96,7 +96,8 @@ verify_git_settings
96
test -n "$INVALIDATE_NEXUS" &&
97
verify_netrc_settings
98
99
-pomVersion="$(sed -n 's/^ <version>\(.*\)-SNAPSHOT<\/version>$/\1/p' pom.xml)"
+devVersion=$(mvn -Dexec.executable='echo' -Dexec.args='${project.version}' exec:exec -q)
100
+pomVersion=${devVersion%-SNAPSHOT}
101
test $# = 1 || test ! -t 0 || {
102
version=$pomVersion
103
printf 'Version? [%s]: ' "$version"
0 commit comments