Skip to content

Commit

Permalink
Fix published maven version.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellige committed Aug 16, 2020
1 parent 3942147 commit 97597d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ gpg --fast-import .travis/gpg.asc

if [[ "${TRAVIS_TAG}" =~ ^v.* ]]
then
echo "on a release tag -> set pom.xml <version> to ${TRAVIS_TAG#v}"
mvn -q --settings "${TRAVIS_BUILD_DIR}/.travis/maven-settings.xml" org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$TRAVIS_TAG 1>/dev/null 2>/dev/null
RELEASE_VERSION="${TRAVIS_TAG#v}"
echo "on a release tag -> set pom.xml <version> to $RELEASE_VERSION"
mvn -q --settings "${TRAVIS_BUILD_DIR}/.travis/maven-settings.xml" org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$RELEASE_VERSION 1>/dev/null 2>/dev/null
else
echo "not on a release tag -> keep snapshot version in pom.xml"
fi
Expand Down

0 comments on commit 97597d2

Please sign in to comment.