-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
112 lines (85 loc) · 2.56 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
109
110
111
112
buildscript {
ext {
android_gradle_ver = '7.2.2'
compile_sdk_ver = 33
build_tools_ver = '33.0.0'
min_sdk_ver = 21
compile_sdk_ver = 33
version_code = 8
version_name = "1.1.0-beta03"
java_target = JavaVersion.VERSION_11
jvm_target = '11'
kotlin_ver = '1.7.10'
coroutines_ver = '1.6.4'
ksp_ver = "$kotlin_ver-1.0.6"
hilt_ver = "2.43.2"
ax_hilt_ver = "1.0.0"
ax_core_ver = '1.8.0'
ax_appcompat_ver = '1.5.0'
ax_activity_ver = '1.5.1'
ax_annot_ver = '1.4.0'
ax_browser_ver = '1.4.0'
constr_ver = '2.1.4'
retrofit_ver = '2.9.0'
moshi_ver = '1.13.0'
okhttp_ver = '4.10.0'
mdc_ver = '1.6.1'
epoxy_ver = '4.6.4'
oauth2_ver = 'a364454d6f' // '1.2.2'
ktlint_ver = '0.47.0'
detekt_ver = '1.19.0'
test_ver = '1.4.0'
espresso_ver = '3.4.0'
junit_ver = '1.1.3'
leakcanary_ver = '2.9.1'
mockito_ver = '4.7.0'
arch_core_ver = '2.1.0'
orchestrator_ver = '1.3.0'
dokka_ver = '1.6.10'
}
repositories {
google()
mavenCentral()
}
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 "com.google.devtools.ksp:symbol-processing-gradle-plugin:$ksp_ver"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_ver"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detekt_ver"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}
subprojects {
// ktlint
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')
}
if (project.tasks.findByName('dokka')) {
check.dependsOn('dokka')
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}