-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle.kts
33 lines (29 loc) · 942 Bytes
/
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(Dependencies.Android.gradlePlugin)
classpath(Dependencies.Google.services)
classpath(Dependencies.Kotlin.gradlePlugin)
classpath(Dependencies.Kotlin.serializationPlugin)
classpath(Dependencies.Android.navigationSafeArgsPlugin)
}
}
allprojects {
repositories {
google()
mavenCentral()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}
// TODO: Remove once ExperimentalCoroutinesApi: runTest is stable
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
}