I have the same issue. This can happen in any Gradle project, even plain java, when you build with the new isolated projects feature: -Dorg.gradle.unsafe.isolated-projects=true
Please consider supporting it, it can speed up your project a lot if you have lots of modules, and in my case sonar is the only plugin that does not support it