Yes I was. The ‘magic’ configuration was this. Let’s sonarqube/jacoco find the kotlin files. Note that my project is 100% Kotlin, hence the explicit setting to kotlin classes, and it’s Gradle 4+.
If you have a mixed project, you’ll likely need to add to the sonar.java.binaries property.
I spent a bit of time experimenting with this. Using Docker and the Sonarqube container at DockerHub was a HUGE benefit. Sped up attempts significantly.
sonarqube {
properties {
property 'sonar.java.binaries', "$projectDir/build/classes/kotlin"
}
}