Kotlin analysis through sonnar-scanner


  • SonarQube: 9.2.4
  • Scanner: sonar-scanner-

We are trying to use sonar-scanner in our projects developed with kotlin + gradle. We are automating the execution of lots of projects, and we want to avoid touching the gradle file and add the plugin for sonarqube. We have to many projects with their own gradles, and is lot of time for our team to make an update into everyone of them. Instead, we want to execute sonnar-scanner in our projects that comes with our CI/CD automation already applied

Our sonar-project.properties is similar like below.




The project appears in SonarQube dashboard in our https://our.company.domain host, but it doesn’t show any code. The code is not being analize.

¿Is it posible to run sonnar-scanner with kotlin code? We are searching but it seems everyone uses sonarqube plugin with gradle for kotlin project. We really appreciate your help on this issue.



Welcome to the community!

Please share your analysis log.

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.