How to run sonar-runner plugin for multi-language source files in same directory?

(Markus Pscheidt) #1

For web projects with files in different languages - Java, Javascript, Html - the following should be a common case:

he sonar sample at runs successfully with the command line sonar-runner, but I haven’t managed with Gradle.

Any suggestions to implemente this sample with Gradle?

(Peter Niederwieser) #2

The sample simulates multi-language support by defining multiple Sonar modules with the same module directory. You can’t get that with the ‘sonar-runner’ plugin, but you can always declare your own ‘SonarRunner’ task and configure it manually, similar to what the sample does.