-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
39 lines (34 loc) · 1.09 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
33
34
35
36
37
38
39
@Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
plugins {
alias(libs.plugins.application).apply(false)
alias(libs.plugins.library).apply(false)
alias(libs.plugins.kotlin).apply(false)
alias(libs.plugins.compose.compiler).apply(false)
alias(libs.plugins.serialization).apply(false)
alias(libs.plugins.ktlint).apply(true)
alias(libs.plugins.detekt).apply(true)
}
buildscript {
dependencies {
classpath(libs.hilt.classpath)
}
}
subprojects {
apply(plugin = Plugins.ktlint)
apply(plugin = Plugins.detekt)
detekt {
config = files("$rootDir/${ModuleExtension.FilePath.detekt}")
buildUponDefaultConfig = true
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=androidx.compose.material3.ExperimentalMaterial3Api",
"-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
)
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}