Niels Doucet
08/01/2025, 7:56 AMExecution failed for task ':sonar'.
> Resolution of the configuration ':project-submodule:testCompileClasspath' was attempted without an exclusive lock. This is unsafe and not allowed.
Details in ๐งตNiels Doucet
08/01/2025, 7:56 AMfor (Project childProject : enabledChildProjects) {
...
Here the plugin starts looping through all child projects. Eventually it tries to do the following:
https://github.com/SonarSource/sonar-scanner-gradle/blob/5835ab71326c7592f9b8d4068[โฆ]0/src/main/java/org/sonarqube/gradle/SonarPropertyComputer.java
List<File> libraries = exists(main.getCompileClasspath().getFiles());
Which is where the build fails with the error above.Vampire
08/01/2025, 9:36 AMVampire
08/01/2025, 9:37 AMVampire
08/01/2025, 9:41 AMSonarPropertyComputer
that does that is used as convention value for a map property of the sonar task, so if you set explicit properties, the logic should not kick in, but you have to build the proper configuration yourself.Niels Doucet
08/01/2025, 9:43 AMBut there is way more problems in that plugin actuallynot only in the plugin ๐ I'll start by trying to find the place where I can file an issue for this and then move on to manual configuration. Thanks for the pointer!
Vampire
08/01/2025, 9:48 AMVampire
08/01/2025, 9:50 AM