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
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.