diff --git a/.travis.yml b/.travis.yml index 749b31c..a2a653a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,11 @@ language: java sudo: false -jdk: openjdk8 +matrix: + include: + - jdk: openjdk8 + env: GRADLE_PUBLISH=true + - jdk: openjdk11 + env: GRADLE_PUBLISH=false install: true script: "./gradle/buildViaTravis.sh" cache: diff --git a/build.gradle b/build.gradle index 3f40dc8..6de28f6 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ * limitations under the License. */ plugins { - id 'nebula.plugin-plugin' version '13.1.1' + id 'nebula.plugin-plugin' version '13.2.0' } description = 'Allows projects to leave off version numbers in dependencies section and have versions recommended by other sources' diff --git a/gradle/buildViaTravis.sh b/gradle/buildViaTravis.sh index d272bc8..3866309 100755 --- a/gradle/buildViaTravis.sh +++ b/gradle/buildViaTravis.sh @@ -5,7 +5,7 @@ SWITCHES="--info --stacktrace" GRADLE_VERSION=$(./gradlew -version | grep Gradle | cut -d ' ' -f 2) -if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then +if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ "$GRADLE_PUBLISH" == "false" ]; then echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]" ./gradlew build $SWITCHES elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then