Must-share information (formatted with Markdown):
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
Gradle - Plugin: org.sonarqube version 6.2.0.5505 (latest)
- how is SonarQube deployed: zip, Docker, Helm
N/A
- what are you trying to achieve
Run sonar scanner for gradle with newly released gradle 9.
- what have you tried so far to achieve this
When running ./gradlew sonar
we get the following error:
Execution failed for task ':sonar'.
> Resolution of the configuration ':project-submodule:testCompileClasspath' was attempted without an exclusive lock. This is unsafe and not allowed.
The scanner implementation violates the following: Viewing Dependencies
A task specifies a configuration from another project as an input file collection.
From the error stacktrace I traced it down to the following code path:
This gets called in a loop for each child project: