forked from KirkBushman/ARAW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (84 loc) · 2.54 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// 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.3'
min_sdk_ver = 19
compile_sdk_ver = 30
version_code = 2
version_name = "1.0.0"
kotlin_ver = '1.4.21'
coroutines_ver = '1.4.2'
hilt_ver = "2.30.1-alpha"
ax_hilt_ver = "1.0.0-alpha02"
ax_core_ver = '1.3.2'
ax_appcompat_ver = '1.2.0'
ax_activity_ver = '1.1.0'
ax_annot_ver = '1.1.0'
ax_browser_ver = '1.3.0'
constr_ver = '2.0.4'
retrofit_ver = '2.9.0'
moshi_ver = '1.11.0'
okhttp_ver = '4.9.0'
mdc_ver = '1.2.1'
epoxy_ver = '4.3.1'
oauth2_ver = 'd739749df0' // '1.2.2'
ktlint_ver = '0.40.0'
detekt_ver = '1.14.2'
test_ver = '1.3.0'
espresso_ver = '3.3.0'
junit_ver = '1.1.2'
leakcanary_ver = '2.6'
mockito_ver = '3.6.28'
arch_core_ver = '2.1.0'
orchestrator_ver = '1.3.0'
dokka_ver = '1.4.20'
}
repositories {
google()
jcenter()
}
dependencies {
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_ver"
classpath "com.android.tools.build:gradle:${android_gradle_ver}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_ver"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_ver"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detekt_ver"
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}
subprojects {
// ktlint
apply plugin: 'checkstyle'
// apply plugin: 'io.gitlab.arturbosch.detekt'
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')
}
if (project.tasks.findByName('dokka')) {
check.dependsOn('dokka')
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}