// START SNIPPET global-configuration
apply plugin: "sonar"

sonar {
    server {
        url = "http://my.server.com"
    }
    database {
        url = "jdbc:mysql://my.server.com/sonar"
        driverClassName = "com.mysql.jdbc.Driver"
        username = "Fred Flintstone"
        password = "very clever"
    }
}
// END SNIPPET global-configuration

// START SNIPPET common-project-configuration
subprojects {
    sonar {
        project {
            sourceEncoding = "UTF-8"
        }
    }
}
// END SNIPPET common-project-configuration

// START SNIPPET individual-project-configuration
project(":project1") {
    sonar {
        project {
            skip = true
        }
    }
}
// END SNIPPET individual-project-configuration

// START SNIPPET language-configuration
project(":project2") {
    sonar {
        project {
            language = "groovy"
        }
    }
}
// END SNIPPET language-configuration

// START SNIPPET property-syntax
project(":project2").sonar.project.language = "groovy"
// END SNIPPET property-syntax