Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
edmocosta authored Jun 24, 2020
1 parent 216633d commit 3b6942f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ set -e

if [ -z "$SONATYPE_USERNAME" ]
then
echo "error: please set SONATYPE_USERNAME and SONATYPE_PASSWORD environment variable"
echo "Error: please set SONATYPE_USERNAME and SONATYPE_PASSWORD environment variable"
exit 1
fi

if [ -z "$SONATYPE_PASSWORD" ]
then
echo "error: please set SONATYPE_PASSWORD environment variable"
echo "Error: please set SONATYPE_PASSWORD environment variable"
exit 1
fi

if [ ! -z "$TRAVIS_TAG" ]
then
echo "on a tag -> set pom.xml <version> to $TRAVIS_TAG"
echo "On a tag -> set pom.xml <version> to $TRAVIS_TAG"
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$TRAVIS_TAG 1>/dev/null 2>/dev/null
else
echo "not on a tag -> keep snapshot version in pom.xml"
echo "Not on a tag -> keep snapshot version in pom.xml"
fi

mvn clean deploy --settings .travis/settings.xml -DskipTests=true -B -U -P release

0 comments on commit 3b6942f

Please sign in to comment.