Hi. We are on SonarQube “Version 7.0 (build 36138)” Community with SonarJava plugin version “5.1 (build 13090)” installed.
We get the following error when trying to scan (Gradle org.sonarqube plugin v2.6.2) a Java 11 project:
> Task :sonarqube
Quality profile for java: Sonar way
Quality profile for xml: Sonar way
Sensor JavaSquidSensor [java]
Invalid java version (got "11"). The version will be ignored. Accepted formats are "1.X", or simply "X" (for instance: "1.5" or "5", "1.6" or "6", "1.7" or "7", etc.)
Configured Java source version (sonar.java.source): none
I’m a bit confused as to our options to resolve this:
- The compat matrix (https://docs.sonarqube.org/display/PLUG/Plugin+Version+Matrix) says our 7.0 version only supports SonarJava 5.6. Is this sufficient for scanning Java 11 code?
- The SonarJava plugin page (https://docs.sonarqube.org/display/PLUG/SonarJava), if I read it correctly, says the latest (at the moment, 5.10.2, Jan. 30, 2019) version is compatible with SQ 6.7+. Does this mean it’s compatible with our SQ 7.0 instance?
Can someone please clarify what SonarJava version (and in turn, SonarQube server version) we need to upgrade to in order to support Java 11?