Compatibility betwen sonar scanner and sonar server

Hi there,
we are planning to upgrade our sonarqube instance from 9.9.6 to 10.7.
Some of our build pipelines are currently still using the sonar scanner for maven 3.9.1.

Will sonar scanner for maven 3.9.1 still be compatibile with sonarqube server 10.7?
I only found this thread regarding the compatibility, which is a bit vague (“rule of thumb”):

Hey there.

If a version of SonarQube drops compatibility for a scanner version, it will be noted in the upgrade notes.

You can safely use SonarScanner for Maven v3.9.1 with SonarQube 10.7.

Thanks for the quick answer!

Just to be sure though, in the sonar scanner for maven documentation it says for prerequisites: “At least the minimal version of Java supported by your SonarQube server is in use”

So that means with sonar server 9.9, sonar-scanner 3.9.1 can run on java 11, but with sonar server 10.7, it will only run under java 17?

That’s correct. The scanner is basically just a wrapper for the “real” analysis engine that is downloaded from a given SonarQube server. The engine downloaded form v9.9 can run on Java 11, while v10.7 requires Java 17.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.