FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sonar'.
> Illegal char <*> at index 29: <path>/**/build/reports/kover/report.xml
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonar'.
...
Caused by: java.nio.file.InvalidPathException: Illegal char <*> at index 29: <path>/**/build/reports/kover/report.xml
at org.sonarqube.gradle.SonarTask.lambda$filterPaths$8(SonarTask.java:401)
at org.sonarqube.gradle.SonarTask.filterPaths(SonarTask.java:402)
at org.sonarqube.gradle.SonarTask.lambda$filterPathProperties$5(SonarTask.java:377)
at org.sonarqube.gradle.SonarTask.filterPathProperties(SonarTask.java:376)
at org.sonarqube.gradle.SonarTask.run(SonarTask.java:164)
Unfortunately, it did not solve the issue for me, my lines of code dropped to 0 when I updated the plugin from 7.1.0.6387 to 7.2.0.6526 and the new release (7.2.2.6593) does not help.
I have SonarQube Enterprise Edition v2025.4.3 (113915) on server-side
It’s a multi-module project. Root config looks like this:
Sorry for the late reply, we have identified the issue and will be working on a fix but in the meantime, the recommendation is to downgrade to version 7.1 of the scanner.
Sorry for the inconvenience and thank your for your patience.
We just released version 7.2.3 of the SonarScanner for Gradle which should improve the behavior of the plugin when dealing with user-defined paths.
Please give it a try and let us know if that solves the issue you ran into.
Hi,
Thanks @Dorian_Burihabwa for notifying me.
My conclusions after updating to 7.2.3 for my project:
works for AGP 9.0 (when Gradle property android.newDsl is set to false)
does not work for AGP 9.0 (when Gradle property android.newDsl is missing or set to true) - So I cannot confirm that the wildcard fix works in this case