When using org.sonarqube gradle plugin, we get the following error when using isSkipProject = true
* What went wrong:
Execution failed for task ':sonar'.
> The base directory of the module ':client' does not exist: /private/var/folders/hj/6wjn3yv15n7dlmqc43dft_sh0000gp/T/junit5923190893186433902/:client
Thanks for letting us know about the issue. Unfortunately I have trouble reproducing it using the example provided by you.
I tested it both using Gradle wrapper 8 and 7 and the isSkipProject setting on the child module works just fine and Sonar omits the module without any issues.
Could you add property("sonar.scanner.dumpToFile", "some-file-path.txt") and attach the result? This would help us investigate the issue further.
Saw this comment in the linked JIRA issue, copy pasting here for visbility:
This bug only affected users who were using deprecated âsonarqubeâ task instead of âsonarâ.
Until this is released, the work-around is to use âsonarâ in your build.gradle.
Switching from sonarqube to sonar extension in my build.gradle.kts file fixed the issue in my project. Thanks Lukasz!