-
Notifications
You must be signed in to change notification settings - Fork 57
/
build.gradle.kts
49 lines (47 loc) · 1.54 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
49
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath(Deps.AppPlugins.android_gradle)
classpath(Deps.AppPlugins.kotlin)
classpath(Deps.AppPlugins.hilt)
classpath(Deps.AppPlugins.gms)
classpath(Deps.AppPlugins.Firebase.crashlytics)
classpath(Deps.AppPlugins.Firebase.performance)
classpath(Deps.AppPlugins.Firebase.app_distribution)
classpath("com.android.tools.build:gradle:7.0.4")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle.kts files
}
}
allprojects {
repositories {
google()
mavenCentral()
}
configurations.all {
resolutionStrategy.eachDependency {
when {
requested.name.startsWith("kotlin-stdlib") -> {
useTarget(
"${requested.group}:${requested.name.replace(
"jre",
"jdk"
)}:${requested.version}"
)
}
else -> when (requested.group) {
"org.jetbrains.kotlin" -> useVersion(Deps.Versions.kotlin)
}
}
}
}
}
tasks.register("clean").configure {
delete("build")
}