forked from Chesire/Nekome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (73 loc) · 2.09 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
buildscript {
ext.hilt_version = "2.34-beta"
ext.jacoco_version = "0.8.6"
ext.kotlin_version = "1.4.21"
ext.nav_version = "2.3.5"
repositories {
google()
jcenter()
}
dependencies {
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath "com.android.tools.build:gradle:4.1.3"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.14.2"
id "org.jlleitschuh.gradle.ktlint" version "10.0.0"
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
apply from: "${project.rootDir}/jacoco.gradle"
afterEvaluate {
if (getPlugins().hasPlugin('android') ||
getPlugins().hasPlugin('android-library')
) {
configure(android.lintOptions) {
abortOnError false
checkAllWarnings true
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
sdk_version = 30
// App
appcompat_version = "1.2.0"
coil_version = "1.2.0"
constraint_layout_version = "2.0.4"
corektx_version = "1.6.0-alpha01"
coroutines_version = "1.4.1"
dagger_version = "2.29.1"
fragmentctx_version = "1.3.2"
hiltx_version = "1.0.0-beta01"
lifecycle_version = "2.2.0"
lintrules_version = "1.2.6"
liveevent_version = "1.2.0"
material_version = "1.3.0"
materialdialog_version = "3.3.0"
moshi_version = "1.12.0"
preferences_version = "1.1.1"
retrofit_version = "2.9.0"
room_version = "2.2.6"
timber_version = "4.7.1"
// Tests
coretesting_version = "2.1.0"
junit_version = "4.13.2"
mockk_version = "1.11.0"
}
apply from: "detekt.gradle"