Missing Jar files when running Sonar Gradle Plugin with Java/Kotlin only modules

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 :smiley:

Thank you,
Berkay.