Skip to content

Commit 11008c0

Browse files
author
Oleg
committed
Add dependency to detektAll whecn check task is running
1 parent b5c3c41 commit 11008c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ ktlint {
7676
}
7777
}
7878

79-
tasks.register("detektAll") {
79+
private val detektAllTask = tasks.register("detektAll") {
8080
dependsOn(tasks.withType<Detekt>())
81+
}
82+
83+
tasks.named("check") {
84+
dependsOn(detektAllTask)
8185
}

0 commit comments

Comments
 (0)