Gradle analysis fails to configure compatibility options

We are having the exact same problem and getting the exact same exception including the break on this line: configureCompatibilityOptions(JavaCompilerUtils.java:92)
We have the following versions:

  • sonarqube gradle plugin version 4.4.1.3373
  • Server Version: Docker - 9.9
  • Gradle version 7.6

The only sonarqube gradle plugin version that works for us is 4.0.0.2929: none of the other versions work including the 4.4.1.3373 (latest).
We have also tried the solution stated in this similar issue but with no success: java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String

We are currently blocked from using a more recent version of the sonarqube gradle plugin.

1 Like