-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
32 lines (30 loc) · 1.04 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath(Dependencies.BUILDPLUGINS.TOOLS_BUILD_GRADLE)
classpath(Dependencies.BUILDPLUGINS.DAGGER_HILT_PLUGIN)
classpath(Dependencies.BUILDPLUGINS.KOTLIN_GRADLE_PLUGIN)
classpath(kotlin("serialization", version = Dependencies.VERSIONS.KOTLIN_VERSION))
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0")
}
}
allprojects {
repositories {
google()
mavenCentral()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions.freeCompilerArgs += listOf(
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
)
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
tasks.register("clean").configure {
delete(rootProject.buildDir)
}