-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (33 loc) · 994 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
34
35
36
37
38
39
buildscript {
repositories {
google()
mavenCentral()
maven(url = uri("https://www.jitpack.io"))
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.4")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.3")
}
}
plugins {
`kotlin-dsl`
}
allprojects {
repositories {
google()
mavenCentral()
maven(url = uri("https://www.jitpack.io")) }
}
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
// Treat all Kotlin warnings as errors
allWarningsAsErrors = false
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
freeCompilerArgs += "-Xopt-in=kotlin.Experimental"
freeCompilerArgs += "-Xjvm-default=all"
jvmTarget = "11"
}
}
}