-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
48 lines (44 loc) · 1.75 KB
/
build.gradle.kts
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
@Suppress("AndroidGradlePluginVersion")
buildscript {
val kotlinVersion by extra(AppVersion.kotlin)
val androidBuildToolsVersion by extra(AppVersion.androidGradle)
repositories {
google()
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
maven { setUrl("https://kotlin.bintray.com/kotlinx") }
maven { setUrl("https://dl.bintray.com/jetbrains/kotlin-native-dependencies") }
maven { setUrl("https://dl.bintray.com/svok/jar2npm") }
maven { setUrl("https://maven.google.com") }
}
dependencies {
classpath("com.android.tools.build:gradle:$androidBuildToolsVersion")
classpath ("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.google.dagger:hilt-android-gradle-plugin:${AppVersion.hilt}")
classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
classpath("com.google.gms:google-services:${AppVersion.googleServices}")
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
maven { setUrl("https://kotlin.bintray.com/kotlinx") }
maven { setUrl("https://dl.bintray.com/jetbrains/kotlin-native-dependencies") }
maven { setUrl("https://dl.bintray.com/svok/jar2npm") }
maven { setUrl("https://maven.google.com") }
}
}
subprojects {
repositories {
google()
mavenCentral()
maven { setUrl("https://kotlin.bintray.com/kotlinx") }
maven { setUrl("https://maven.google.com") }
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}