-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (48 loc) · 1019 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apply plugin: 'checkstyle'
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://jitpack.io'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task copyFiles << {
if (file('.idea').exists()) {
copy {
from '.preserve/inspectionProfiles'
into '.idea/inspectionProfiles'
}
copy {
from '.preserve/checkstyle-idea.xml'
into '.idea'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
checkstyle {
toolVersion "8.16"
configFile = new File(rootDir, "config/checkstyle.xml")
}
task checkstyleMain (type: Checkstyle) {
source 'app/src/main'
include '**/*.java'
exclude '**/gen/**'
exclude '**/R.java'
exclude '**/BuildConfig.java'
classpath = files()
ignoreFailures = true
}
// vim: ts=4:sw=4:et:ft=groovy