Since SonarQube 4.2, it is possible to run an analysis on a multi-language project. To do so, the
sonar.language property just has to be removed.
The configuration for parent and modules must be done in the parent build.xml file:
- Modules with the same structure: projects/multi-module/ant/java-ant-modules-same-structure
- Modules with different structures: projects/multi-module/ant/java-ant-modules-different-structures
Multi-module and Multi-language Project
Since SonarQube 3.3, it is possible to run an analysis on a multi-module project whose modules contains source code from different languages.
In addition to the multi-module configuration, the only mandatory property to set is the language for each module:
<property name="module1.sonar.language" value="java"/> <property name="module2.sonar.language" value="js"/> ...
Additional analysis parameters can be defined in the build.xml file or through command-line parameters.