Separated reports for each Gradle submodules

Must-share information:

  • SonarQube Gradle plugin version 3.3

I want to scan my main project and publish to SonarQube as a whole, also, I want to scan particular submodules and publish as separated projects to SonarQube

Can I achieve such a requirement? Thanks you all!

Hi,

I’m not a Gradle expert, but I believe you should be able to cd into your submodules and re-analyze from there. Note that you’ll want to make sure a unique project key is passed for each one. Note also, that this will inflate your License LoC if you’re on a commercial edition.

Would you mind sharing why you want to do this?

 
Ann