blob: 6dcc35b8dfebe9c5764a49ca96852afbfb33872c [file] [log] [blame]
#!/bin/bash
#
# Deploy a snapshot build to Sonatype.
#
set -e
echo "Pull request: '${TRAVIS_PULL_REQUEST}' on branch '${TRAVIS_BRANCH}' with JDK '${TRAVIS_JDK_VERSION}'"
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_JDK_VERSION}" = "oraclejdk8" ]; then
echo "Deploying snapshot..."
SKIP_JAVADOC=true ./gradlew upload --info --stacktrace
fi