I found that:
- runnning
jar
task creates jar outputs of Java only modules. - running
createFullJarDebugTestFixtures
(on Android) task creates jar outputs of test fixtures.
So we run the jar createFullJarDebugTestFixtures
tasks before (in a separate command) running the sonar
task in order to avoid this missing jar problem.
I wish Sonar Gradle Plugin would configure the necessary outputs and task dependencies so that we wouldn’t need to run its dependencies in advance like this.
If there is a better setup than this, I’m more than happy to hear
Thank you,
Berkay.