forked from cortinico/ktfmt-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
29 lines (22 loc) · 952 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
plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.detekt)
}
subprojects {
apply { plugin(rootProject.libs.plugins.detekt.get().pluginId) }
detekt { config.setFrom(rootProject.files("config/detekt/detekt.yml")) }
}
tasks.register<Delete>("clean") { delete(layout.buildDirectory) }
tasks.register("reformatAll") {
description = "Reformat all the Kotlin Code"
dependsOn(":example:ktfmtFormat")
dependsOn(gradle.includedBuild("plugin-build").task(":plugin:ktfmtFormat"))
}
tasks.register("preMerge") {
description = "Runs all the tests/verification tasks on both top level and included build."
dependsOn(":example:check")
dependsOn(gradle.includedBuild("plugin-build").task(":plugin:check"))
dependsOn(gradle.includedBuild("plugin-build").task(":plugin:validatePlugins"))
}