Skip to content

Commit adb12fb

Browse files
committed
separate test and fmt root tasks
1 parent 72c5556 commit adb12fb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

build.gradle.kts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,24 @@ tasks.register("clean",Delete::class){
2222
delete(rootProject.layout.buildDirectory)
2323
}
2424

25-
tasks.register("dev") {
26-
group = "development"
27-
description = "Developer loop, run tests and linting"
25+
tasks.register("fmt") {
26+
group = "formatting"
27+
description = "Format sources"
2828

2929
val lintingTasks = subprojects.mapNotNull { it.tasks.findByName("formatKotlin") }
3030

31+
dependsOn(lintingTasks)
32+
}
33+
34+
tasks.register("test") {
35+
group = "development"
36+
description = "Developer loop, run testsuite designed for fast feedback"
37+
3138
val jvmTestTasks = subprojects.mapNotNull { subproject ->
3239
subproject.tasks.findByName("jvmTest")?.also { task ->
3340
(task as Test).exclude("**/WehTest.class")
3441
}
3542
}
3643

37-
dependsOn(jvmTestTasks + lintingTasks)
44+
dependsOn(jvmTestTasks)
3845
}

0 commit comments

Comments
 (0)