Skip to content

Commit

Permalink
Publish snapshots for 3.0 branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Jun 24, 2015
1 parent 487d9c5 commit fce1131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/travis-sonatype-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Based closely on material from
# http://benlimmer.com/2014/01/04/automatically-publish-to-sonatype-with-gradle-and-travis-ci.

if [ "$SONATYPE_PUBLISH" == "true" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "$SONATYPE_PUBLISH_BRANCH" ]; then
if [ "$SONATYPE_PUBLISH" == "true" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ([ "$TRAVIS_BRANCH" == "$SONATYPE_PUBLISH_BRANCH" ] || [ "$TRAVIS_BRANCH" == "3.0" ]); then
echo -e "Starting publish to Sonatype...\n"

./gradlew uploadArchives -PNEXUS_USERNAME="${NEXUS_USERNAME}" -PNEXUS_PASSWORD="${NEXUS_PASSWORD}"
Expand Down

0 comments on commit fce1131

Please sign in to comment.