apply plugin: "java"
apply plugin: "sonar"

sourceSets {
    custom
    integTest
}

// START SNIPPET source-sets
sonar.project {
    sourceDirs += sourceSets.custom.allSource.srcDirs
    testDirs += sourceSets.integTest.allSource.srcDirs
}
// END SNIPPET source-sets

// START SNIPPET global-properties
sonar.withGlobalProperties { props ->
    props["some.global.property"] = "some value"
}
// END SNIPPET global-properties

// START SNIPPET project-properties
sonar.project.withProjectProperties { props ->
    props["some.project.property"] = "some value"
}
// END SNIPPET project-properties