// tag::use-checkstyle-plugin[]
apply plugin: 'checkstyle'
// end::use-checkstyle-plugin[]
// tag::use-codenarc-plugin[]
apply plugin: 'codenarc'
// end::use-codenarc-plugin[]
// tag::use-findbugs-plugin[]
apply plugin: 'findbugs'
// end::use-findbugs-plugin[]
// tag::use-pmd-plugin[]
apply plugin: 'pmd'
// end::use-pmd-plugin[]
// tag::use-jdepend-plugin[]
apply plugin: 'jdepend'
// end::use-jdepend-plugin[]
// tag::customize-checkstyle-report[]
tasks.withType(Checkstyle) {
    reports {
        xml.enabled false
        html.enabled true
        html.stylesheet resources.text.fromFile('config/xsl/checkstyle-custom.xsl')
    }
}
// end::customize-checkstyle-report[]
// tag::customize-findbugs-report[]
tasks.withType(FindBugs) {
    reports {
        xml.enabled false
        html.enabled true
        html.stylesheet resources.text.fromFile('config/xsl/findbugs-custom.xsl')
    }
}
// end::customize-findbugs-report[]
apply plugin: 'java'
apply plugin: 'groovy'

repositories {
    mavenCentral()
}

dependencies {
    compile localGroovy()
    testCompile 'junit:junit:4.12'
}
