ERROR: Error during SonarScanner execution java.lang.UnsupportedOperationException:

Hi team,

we are getting the below error while using the sonarqube enterprise/developer version and running analysis by sonar scanner. is there any changes introduced in the latest releases about removing of settings() method. i didn’t find anywhere in release docs.

any particular version has any changes and difference in changes for different editions?

we are using SQ -2025.3.0.108892
sonar-scanner : 5.0.1.3006

java -version : 17

ERROR: Error during SonarScanner execution java.lang.UnsupportedOperationException: This method is not supported anymore at org.sonar.scanner.sensor.ProjectSensorContext.settings(ProjectSensorContext.java:106)

analysis is incompatible with the SonarQube version. The plugin is trying to access project settings using a method that has been removed or changed in the SonarQube API.

Hi,

SonarScanner CLI 5.0.1 has quite a bit of age on it at this point. The current version is 7.2. Upgrade the scanner and you should be good to go.

 
HTH,
Ann