Correctly apply checkstyle plugin

This commit is contained in:
Paul Schaub 2019-03-28 01:14:55 +01:00
parent a71eeafd26
commit c89bd732b2
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
3 changed files with 15 additions and 7 deletions

View File

@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'checkstyle'
android {
compileSdkVersion 27
@ -24,6 +25,20 @@ android {
}
}
task checkstyle(type: Checkstyle) {
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
source 'src/main/java'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
checkstyle {
toolVersion = '8.17'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'

View File

@ -29,13 +29,6 @@ allprojects {
url 'https://igniterealtime.org/repo/'
}
}
apply plugin: 'checkstyle'
checkstyle {
configFile = new File(rootConfigDir, 'checkstyle.xml')
toolVersion = '8.10'
}
}
task clean(type: Delete) {