diff --git a/.utility/deploy.sh b/.utility/deploy.sh index 267b0677..6551358e 100755 --- a/.utility/deploy.sh +++ b/.utility/deploy.sh @@ -1,6 +1,6 @@ #!/bin/bash set -ev -if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then +if [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then echo "ossrh\${env.OSSRH_USER}\${env.OSSRH_PASS}" > ~/settings.xml - mvn deploy --settings ~/settings.xml +mvn deploy -Prelease --settings ~/settings.xml fi