-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
38 lines (33 loc) · 950 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath(Libs.androidGradlePlugin)
classpath(Libs.Kotlin.gradlePlugin)
classpath(Libs.Hilt.gradlePlugin)
}
}
subprojects {
repositories {
google()
mavenCentral()
jcenter()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).configureEach {
kotlinOptions {
jvmTarget = "1.8"
// Use experimental APIs
freeCompilerArgs = freeCompilerArgs.toMutableList().apply {
add("-Xopt-in=kotlin.RequiresOptIn")
add("-Xallow-jvm-ir-dependencies")
add("-Xskip-prerelease-check")
}
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}