-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
40 lines (34 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
40
buildscript {
repositories {
google()
mavenCentral()
maven(url = uri("https://www.jitpack.io"))
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.0-alpha14")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30")
}
}
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 {
// Enable Kotlin backend compilation
useIR = true
// 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"
}
}
}