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.
deploy_snapshot.sh
1 parent 8f1395f commit d9bdc14Copy full SHA for d9bdc14
.travis/deploy_snapshot.sh
@@ -2,7 +2,8 @@
2
set -ev
3
4
DATE=`date +%Y%m%d%H%M`
5
-OLD_VERSION=`mvn -q org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -DforceStdout -Dexpression=project.version`
+#using this solution to get version into variable: https://stackoverflow.com/a/26514030/1470603
6
+OLD_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
7
VERSION=`sed "s/-SNAPSHOT/-${DATE}-SNAPSHOT/g" <<<"${OLD_VERSION}"`
8
9
echo "Changing snapshot version, OLD: ${OLD_VERSION} NEW: ${VERSION}"
0 commit comments