Only Oracle JRE 8 or OpenJDK 8 is supported as Java of SonarQube execution environment. However, the Java analyzer (SonarJava) itself is not related to this version You can analyze any version of the source code.
Prerequisites and Overview https://docs.sonarqube.org/latest/requirements/requirements/
- The only prerequisite for running SonarQube is to have Java (Oracle JRE 8 or OpenJDK 8) installed on your machine.
- The SonarQube Java analyzer is able to analyze any kind of Java source files regardless of the version of Java they comply to.
SonarJava 5.8 officially supports analysis for Java 11.
Make SonarJava officially support Java 11 https://jira.sonarsource.com/browse/SONARJAVA-2862
For 7.0, 7.1 and 7.2, the Sonar Java version is 5.6 before Java 11 official support. 6.7 (LTS) or 7.3 or later is compatible with SonarJava 5.9.2.
SonarQube Version | 6.7(LTS) | 7.0 | 7.1 | 7.2 | 7.3 | 7.4 | 7.5 |
---|---|---|---|---|---|---|---|
SonarJava | 5.9.2 | 5.6 | 5.6 | 5.6 | 5.9.2 | 5.9.2 | 5.9.2 |
Plugin Version Matrix https://docs.sonarqube.org/display/PLUG/Plugin+Version+Matrix
Recommended Posts