forked from cs125-illinois/Fall-2018-Lab11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (54 loc) · 1.1 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
apply plugin: 'checkstyle'
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://jitpack.io'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task copyFiles << {
copy {
from '.preserve/checkstyle-idea.xml'
into '.idea'
}
copy {
from '.preserve/inspectionProfiles'
into '.idea/inspectionProfiles'
}
}
allprojects {
afterEvaluate {
it.tasks.each {
if (it != rootProject.tasks.copyFiles) {
it.finalizedBy rootProject.tasks.copyFiles
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
checkstyle {
toolVersion "8.12"
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()
}
// vim: ts=4:sw=4:et:ft=groovy