-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
38 lines (34 loc) · 1.13 KB
/
build.gradle.kts
File metadata and controls
38 lines (34 loc) · 1.13 KB
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()
mavenCentral()
}
dependencies {
classpath(Dep.Plugins.androidGradlePlugin)
classpath(Dep.Plugins.kotlin)
classpath(Dep.Plugins.dagger)
classpath(Dep.Plugins.spotless)
}
}
subprojects {
afterEvaluate {
project.apply("$rootDir/spotless.gradle")
// used ./gradlew spotlessCheck
// used ./gradlew spotlessApply
}
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile> {
kotlinOptions {
freeCompilerArgs =
listOf(
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes",
"-Xuse-experimental=androidx.compose.ui.ExperimentalComposeUiApi",
"-Xuse-experimental=com.google.accompanist.pager.ExperimentalPagerApi"
)
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}