1#!/bin/bash
2#
3# Deploy a snapshot build to Sonatype.
4#
5
6set -e
7
8echo "Pull request: '${TRAVIS_PULL_REQUEST}' on branch '${TRAVIS_BRANCH}' with JDK '${TRAVIS_JDK_VERSION}'"
9if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_JDK_VERSION}" = "oraclejdk8" ]; then
10  echo "Deploying snapshot..."
11  SKIP_JAVADOC=true ./gradlew upload --info --stacktrace
12fi
13