Skip to content
Advertisement

Sonar with multi-module gradle project

I have java and kotlin based multi module gradle project. I am trying to setup sonar analysis for the same. I configured sonar at root project and ran analysis with CircleCI. The result in sonarcloud gets for only one of the sub-project.

My project structure is as below:

  • projectA/build.gradle
  • ProjectB/build.gradle
  • ProjectC/build.gradle
  • build.gradle

Here is my root build.gradle.

JavaScript

Advertisement

Answer

Need to include sonarqube outside the subproject block and then all the sub modules will be analysed and report will be exported.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement