-
Notifications
You must be signed in to change notification settings - Fork 82
/
build.gradle.kts
47 lines (41 loc) · 1.33 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
40
41
42
43
44
45
46
47
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.crashlytics).apply(false)
alias(libs.plugins.googleServices).apply(false)
alias(libs.plugins.kotlinMultiplatform).apply(false)
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.sqlDelight).apply(false)
alias(libs.plugins.jetbrainsCompose).apply(false)
alias(libs.plugins.composeCompiler).apply(false)
alias(libs.plugins.ktlint)
alias(libs.plugins.serialization).apply(false)
alias(libs.plugins.skie).apply(false)
}
subprojects {
apply(plugin = rootProject.libs.plugins.ktlint.get().pluginId)
ktlint {
version.set("0.37.2")
enableExperimentalRules.set(true)
verbose.set(true)
filter {
exclude { it.file.path.contains("build/") }
}
}
afterEvaluate {
tasks.named("check") {
dependsOn(tasks.getByName("ktlintCheck"))
}
}
tasks.withType(KotlinCompile::class).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
version.set("1.4.0")
}
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}