Skip to content

Commit 72c5556

Browse files
committed
add a new root project task for a fast development cycle
1 parent 9b36bbd commit 72c5556

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

build.gradle.kts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
plugins {
42
alias(libs.plugins.kotlin.allopen) apply false
53
alias(libs.plugins.kotlin.android) apply false
@@ -23,3 +21,18 @@ plugins {
2321
tasks.register("clean",Delete::class){
2422
delete(rootProject.layout.buildDirectory)
2523
}
24+
25+
tasks.register("dev") {
26+
group = "development"
27+
description = "Developer loop, run tests and linting"
28+
29+
val lintingTasks = subprojects.mapNotNull { it.tasks.findByName("formatKotlin") }
30+
31+
val jvmTestTasks = subprojects.mapNotNull { subproject ->
32+
subproject.tasks.findByName("jvmTest")?.also { task ->
33+
(task as Test).exclude("**/WehTest.class")
34+
}
35+
}
36+
37+
dependsOn(jvmTestTasks + lintingTasks)
38+
}

0 commit comments

Comments
 (0)