-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (74 loc) · 2.19 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
buildscript {
ext {
kotlinVersion = '1.4.10'
androidGradleVersion = '4.0.1'
coroutineVersion = '1.3.9'
// Google libraries
appCompatVersion = '1.2.0'
constraintLayoutVersion = '2.0.1'
materialComponentsVersion = '1.2.1'
roomVersion = '2.2.5'
fragmentVersion = '1.2.5'
lifecycleVersion = '2.2.0'
androidXCoreVersion = '2.1.0'
paletteKtxVersion = '1.0.0'
// Networking
gsonVersion = '2.8.6'
okhttp3Version = '3.12.10'
retrofitVersion = '2.6.4'
// Debug and quality control
detektVersion = '1.14.0'
dokkaVersion = '1.4.10'
ktLintVersion = '0.39.0'
ktLintGradleVersion = '9.4.0'
leakcanaryVersion = '2.5'
// Testing
androidxTestCoreVersion = '1.3.0'
junitGradlePluignVersion = '1.6.2.0'
junitVersion = '5.7.0'
mockkVersion = '1.10.2'
robolectricVersion = '4.4'
truthVersion = '1.0.1'
vintageJunitVersion = '4.13'
}
repositories {
jcenter()
google()
gradlePluginPortal()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradleVersion"
classpath "de.mannodermaus.gradle.plugins:android-junit5:$junitGradlePluignVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktLintGradleVersion"
}
}
allprojects {
version = VERSION_NAME
group = GROUP
repositories {
jcenter()
google()
}
tasks.withType(Test) {
testLogging {
events "skipped", "failed", "passed"
}
}
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
task clean(type: Delete) {
dependsOn(installGitHook)
delete rootProject.buildDir
}
ext {
minSdkVersion = 16
targetSdkVersion = 30
compileSdkVersion = 30
}