-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (47 loc) · 1.49 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
buildscript {
ext.kotlin_version = '1.3.72'
ext.nav_version = "2.0.0"
ext.hilt_version = "2.28-alpha"
ext.build_tools = '29.0.2'
ext.compile_sdk = 29
ext.target_sdk = 29
ext.min_sdk = 23
ext.application_id = 'top.jotyy.coroutines_retrofit_example'
ext.version_name = '1.0'
ext.version_code = 1
ext.test_runner = 'android.support.test.runner.AndroidJUnitRunner'
repositories {
google()
jcenter()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.6.2.0"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'io.gitlab.arturbosch.detekt' version '1.4.0'
id 'jacoco'
}
allprojects {
repositories {
google()
jcenter()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
jacoco {
toolVersion = "0.8.4"
reportsDir = file("reports/jacoco")
}
apply from: 'scripts/ci.gradle'
apply from: 'scripts/dependencies.gradle'