Hello @Uladzislau_Yarmolin,
Thanks for your report. I will check why it’s failing with the configuration cache on.
Meanwhile, as you run clean
and then sonar
tasks I assume that you rely on the fact that sonar
task depends on all your compile tasks and will run them before executing the analysis. This has been the source of many problems (probably yours too), so we made a decision to gradually move away from this behavior. Here you can read more about it and you must have seen a warning about it in the logs.
So the idea is that you now build your project by yourself before running the analysis.
Could you please try running ./gradlew sonar -Dsonar.gradle.skipCompile=true
after you compiled the project? And share the results with me.
Best,
Margarita