Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Gradle plugin: v3.3 -
what are you trying to achieve
Make thesonarqubegradle task run for a nested android module, which lives under another android module in the project repository structure.
Due to the way our CI is setup. We need to run a separate workflow for all our different android modules with tests and then push up the coverage data to sonarcloud using the gradle task from the individual workflows.
The regular android dependency modules work as expected. But this one nested dependency module does not list thesonarqubetask to be available. -
what have you tried so far to achieve this
- Moved
sonarqubeconfiguration toallProjectsin the root gradle file(which we do not want to do as it will apply it for all modules, which is unnecessary for us). - Changing module name from
:provider:onboardingto:onboardingin the dependencies list in the parent android module. - applying plugin with
plugin idnotapply plugin
Also, there are no warnings, which might indicate we’re missing something. But I am out of ideas with no errors and why it works on a dependency module at the same level but not on a nested module.
Thanks for the help.