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

checkstyle {
    // This can't go past 6.7 until we upgrade to Gradle 2.7
    toolVersion = "6.7"
}

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()
}