1
votes

I'm in process of setup Sonar for my Android-Kotlin gradle based project. There I setup local system that run ./gradlew Sonarqube and generate report.

I come across another tool sonar-runner which need to generate report. I checked sonarqube downloaded folder & that already has some sonar-scanner file & generating report without explicit setup. So do we really need sonar-scanner explicitly ?

What I understood is SonarScanner is the scanner that work for scanning & help sonarqube to generate report.

Please make me correct

1

1 Answers

4
votes

sonar-scanner (formerly sonar-runner) is useful when you don't have a build automation tool like gradle, maven, ant or jenkins.

If you build with gradle, then you only need the org.sonarqube plugin.

Here is the documentation Analyzing with SonarQube Scanner for Gradle