SonarQube Server support Java 17

Hello,

What version are we using? SonarQube enterprise Version 8.9.; Scanner - java-17 (adopt openjdk)

We’ve upgraded sonarqube scanner version to Java17(adopt openjdk) and most of our applications are running on Java 8,11,12,17.

  1. Is sonarqube server support applications running Java 17?
  2. Since we’ve upgraded the scanner to 17, will it support of apps running on Java 8,11,12,17?

Please let me know

Thanks.

Hi,

Welcome to the community!

SonarQube 8.9 does not support Java 17: neither for running the server / scanner nor for analysis of Java 17 code in projects.

In SonarQube 9.4, Java 17 is supported for running analysis, and parsing of Java 18 code (and 17, too) is also supported.

Regarding the version of Java your code runs with, as long as you analyze with a supported version of Java, you can compile with or to whatever version of Java you like.

 
HTH,
Ann

Thanks Ann, Is Java 17 on sonarscanner supports projects using Java 9 and under?

Hi,

You can analyze Java 1.4 if you like as long as you use a supported JVM to run the analyzer.

 
HTH,
Ann

@ganncamp Just double checking about Java 17 support being available from which SQ version? The details which you mentioned are still correct…

We are running with SQ 8.9.10/openjdk 11 and scanner current latest/openjdk 8

Thanks

Hi,

Yes, it is still true that SonarQube 8.9 does not support Java 17. If you want Java 17, you should upgrade to the latest version.

 
HTH,
Ann

@ganncamp just to check, does 8.9.10 support jdk17 ?

Hi,

To be very clear, no version of 8.9 (so, 8.9(.0), 8.9.1, 8.9.2 &etc) supports Java 17.

 
Ann

When upgrading Java from 8 to 17, we’ll need to be on at least SonarQube 9.4. But even with 9.7, it shows 0 coverage. Are there any changes required in Sonar configuration?

Thanks,
Shashikant

Hi @Shashikant_Nipanikar,

Welcome to the community!

Please create a new thread that includes all the details of your situation.

 
Ann