diff --git a/.travis.yml b/.travis.yml index ee0af68add0d51bff287840b57d7faae2a78022b..92a6dbada72bde6285c2572ba301ab6fe15b53d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,12 @@ language: java jdk: - - oraclejdk8 + - oraclejdk9 - openjdk8 matrix: include: - - jdk: oraclejdk9 + - jdk: oraclejdk8 addons: sonarcloud: organization: "i2p" @@ -29,7 +29,7 @@ cache: script: - | - if [ "$TRAVIS_JDK_VERSION" == "oraclejdk9" ]; then + if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then ./gradlew sonarqube codeCoverageReport else ./gradlew check codeCoverageReport diff --git a/build.gradle b/build.gradle index aec1a2160569a106b71ccf3a55483191cab5c866..e8d8b4c1892dbdca52d9ad68650cb786aee52445 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,9 @@ -plugins { - id "org.sonarqube" version "2.6.1" +// SonarQube is currently only supported on Java 8 +// https://docs.sonarqube.org/display/SONAR/Requirements#Requirements-SupportedPlatforms +if (JavaVersion.current() == JavaVersion.VERSION_1_8) { + plugins { + id "org.sonarqube" version "2.6.1" + } } // Exclude apps/ dir itself, but include its subdirs