Only use SonarQube with Java 8

It fails on Java 7, and is unsupported on Java 9.
This commit is contained in:
str4d
2017-12-07 16:54:02 +00:00
parent bcb07ff3c6
commit a02cccaa50
2 changed files with 9 additions and 5 deletions

View File

@@ -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