I am setting up Sonar
for one of my projects which is a mix of Groovy
and Java
. I am able to configure the project separately for either of these languages but not together. Is there any way to do this? I tried this
sonar.language = java,grvy
but didnt work
UPDATE April 14th, 2014:
Starting with SonarQube 4.2, multi-language projects are supported.
This automatically happens when sonar.language
is not set.
See my sample project here: https://github.com/bellingard/multi-language-project
If you are using Sonar version 3.4. Then I have written a new maven plugin to help you with multiple language code analysis.
It is still beta
https://code.google.com/p/sonar-multilang-maven-plugin/wiki/UserGuide
If you have any issues with this tool then do let me know on that project website.
Until https://jira.sonarsource.com/browse/SONAR-926 is implemented you can use the combination of sonar.branch and sonar.language properties to analyze separately the project languages and have two different projects in your dashboard.
来源:https://stackoverflow.com/questions/13625022/does-sonar-support-multiple-language-in-same-project