Sonarqube setup for Gradle multi module (build.gradle) project?

plugins

(vishnureddy) #1

Someone help me out how to setup sonarqube in the multimodule Gradle project. Have 10 submodules and the project structure like

toplevelDIR/1/2/3/…/10 and each single module have sub-modules .

top level build.gradle file
apply plugin: ‘java’
subprojects {
apply plugin: ‘java’

repositories {
   maven {
        url "repo1"
    }
    mavenLocal()
}

    group = "make-in-india"
    version = "1.2.0"

jar {
    manifest.attributes provider: 'gradle'
}

dependencies {
    compileOnly 'org.slf4j:slf4j-api:1.7.7'
}

}