Is it possible to override sonar.modules in the sonarqube gradle plugin? -


i'm trying set sonar analysis across non-standard multi-project directory structure root project aggregate sonar data.

using sonarqube runner, i've tried set property sonar.modules sub-projects (which not in child directories), plugin seems override property erroneous default values cause build fail.

the overwrite seems happen in java class : https://github.com/sonarsource/sonar-gradle/blob/master/src/main/java/org/sonarqube/gradle/sonarqubeplugin.java on line 190.

is there way around problem?

i have not tried, looking @ how other properties(sonar.projectkey, sonar.projectname, sonar.projectversion) within same addgradledefaults method begin set, did try same pattern followed configuring other properties per sonarqube plugin documentation ?

fyr, here link sonarqube on how use plugin , or override default values within gradle build script. http://docs.sonarqube.org/display/scan/analyzing+with+sonarqube+scanner+for+gradle

here code snippet

apply plugin: 'org.sonarqube' sonarqube {   properties {     property "sonar.projectname", "my project name"     property "sonar.projectkey", "org.sonarqube:java-gradle-simple"   } } 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -