aboutsummaryrefslogtreecommitdiffstats
path: root/config/quality.gradle
blob: 2df9dcb276fd093030c07a41ffe933fee8108da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
apply plugin: 'checkstyle'

check.dependsOn 'checkstyle'

task checkstyle(type: Checkstyle) {
    configFile file("${project.rootDir}/config/quality/checkstyle/checkstyle.xml")
    configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/config/quality/checkstyle/suppressions.xml").absolutePath

    source 'src/main/java'
    include 'org/connectbot/**/*.java'
    exclude '**/gen/**'

    def configProps = ['proj.module.dir': projectDir.absolutePath]
    configProperties configProps

    classpath = files()
}