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

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

he sonar sample at https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/multi-language/multi-language-source-files-in-same-directory runs successfully with the command line sonar-runner, but I haven’t managed with Gradle.

Any suggestions to implemente this sample with Gradle?

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.