I have a multi-project gradle build that I am trying to use for sonarqube analysis. It successfully analyzes all nested modules in the project, but does not analyze the base or parent project.
I see this warning in the logs:
12: 07: 23.332 WARN - /! \ A multi-module project cannot have source folders, so "C: \ workspaces \ platform \ myProject \ src \ main \ java" will not be used for analysis. If you want to analyze the files in this folder, you should create another submodule and transfer it inside it.
Is there a way to move the parent src, test and binary as folders to be scanned without creating a submodule from the parent?
My SonarQube properties are as follows:
sonarqube{
properties {
property "sonar.host.url", "http://ww:80"
property "sonar.jdbc.url", "jdbc:jtds:sqlserver://db:5555;databaseName=sonarqube"
property "sonar.jdbc.driverClassName", "net.sourceforge.jtds.jdbc.Driver"
property "sonar.jdbc.username", "u"
property "sonar.jdbc.password", "p"
property "sonar.scm.disabled", "true"
property "sonar.junit.reportsPath", "${buildDir}/test-results"
property "sonar.jacoco.reportPath", "${buildDir}/jacoco/test.exec"
property "sonar.modules" , "" }
}