Unexpected behavior in gradle plugin with sonar 2026.5.2

After upgrading our Sonar Server to 2026.5.2 (132813), our Gradle Android multi-module projects no longer provide analysis.

We see this error:
```Failed to retrieve A3S collection configuration

org.sonarqube.ws.client.HttpException: Error 404 on https://xxxxx.xxxx.xxx/api/v2/a3s/collection-config?projectKey=our-project-key : {“message”:“Resource not found.”}

    at org.sonarqube.ws.client.BaseResponse.failIfNotSuccessful(BaseResponse.java:36)

    at org.sonar.scanner.http.DefaultScannerWsClient.failIfUnauthorized(DefaultScannerWsClient.java:136)

    at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:89)

    at com.sonarsource.a3s.scanner.A3SServerContextCollector.fetchIsEnabledFromApi(A3SServerContextCollector.java:94)

    at com.sonarsource.a3s.scanner.A3SServerContextCollector.isEnabled(A3SServerContextCollector.java:76)

    at com.sonar.security.B.F.A(na:2919)

    at com.sonar.security.B.F.execute(na:882)\`\`\`

After that, the analysis stops and the build succeeds!
sonar-scanner CLI and Maven plugin reports this as a warning and continue analysis, but the gradle plugin stops execution.

We use gradle plugin 7.5.0.8588

Hello @kars_blom_triodos, welcome to the Community! In theory, this error message is benign and shouldn’t crash your analysis. It’s associated with a new feature, and when it’s disabled, the scanner logs an exception but keeps going. Can you share the scanner logs from the run that is failing? Perhaps there’s another error which is the cause causing it to crash.

So I see. After further inspection of the logs, I see something strange going on. For some reason, “Sensor Kotlin Sensor [kotlin]” and “Sensor Gradle Sensor [kotlin]” only triggers for 2 of our 14 modules, which leaves them empty. This is new since the server upgrade to 2026.5.2. What could cause this?

Hey @kars_blom_triodos, I guess that the scanner is aborting halfway through the multi-module run and therefore only seeing 2 modules. It’s difficult to tell without seeing debug-level scanner logs.

Can I share the log file with you privately?

I just found analysis.log and basically sonar.sources is not set for most modules. Unrelated, so delete this issue please.

Hey @kars_blom_triodos, glad you are on your way to diagnosing the issue yourself. Just FYI I won’t delete this post, we don’t typically do that, I wouldn’t say there’s any particular need for it.