-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (61 loc) · 1.7 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
63
64
65
66
67
68
69
70
71
72
73
74
75
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
android_gradle_ver = '4.1.1'
compile_sdk_ver = 30
build_tools_ver = "30.0.2"
min_sdk_ver = 21
target_sdk_ver = 30
jvm_ver = JavaVersion.VERSION_1_8
kotlin_ver = '1.4.10'
ktlint_ver = '0.39.0'
ktx_ver = '1.3.2'
ssiv_ver = '3.11.3'
glide_ver = '4.11.0'
coil_ver = '1.0.0'
constr_ver = '2.0.4'
mdc_ver = '1.2.1'
leakcanary_ver = '2.5'
test_ver = '1.3.0'
junit_ver = '1.1.2'
espresso_ver = '3.3.0'
}
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$android_gradle_ver"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_ver"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
subprojects {
apply plugin: 'checkstyle'
apply from: "${project.rootDir}/ktlint.gradle"
task checkstyle(type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
source 'src/main/java'
ignoreFailures false
showViolations true
include '**/*.java'
classpath = files()
}
afterEvaluate {
if (project.tasks.findByName('check')) {
check.dependsOn('checkstyle')
check.dependsOn('ktlint')
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}