Sonar Scanner for Gradle and dependencies

scanner

(Mike) #1

Hi. I’m trying to understand why Gradle scanner uses so many dependencies - pulls almost the whole “world” (read SonarQube engine):

This pulls sonar-core, sonar-ws, etc

As you can see, sonar-scanner-api-batch pulls in sonar-core. Is this by design?

Are there any workarounds I could do to cut the list of dependencies on the scanner shorter? Would Gradle scanner work after simply removing sonar-scanner-api-batch jar (and its list of dependencies) from the classpath?

I’m guessing this list of dependencies is used for compatibility with old versions which used to run analysis during the build. But now that we have WS APIs are they still needed?

Thank you,
Mike