Skip to content

Commit 8c081eb

Browse files
committed
Add type safety to task registration on gradle quality script.
1 parent 8431f94 commit 8c081eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/kotlin/scripts/quality.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ android {
2121
}
2222
}
2323

24-
tasks.register("jacocoReport", JacocoReport::class) {
24+
val jacocoReport by tasks.registering(JacocoReport::class) {
2525
group = "Quality"
2626
description = "Report code coverage on tests within the Android codebase."
2727
dependsOn("test${Default.BUILD_VARIANT}UnitTest")
@@ -70,7 +70,7 @@ tasks.register("jacocoReport", JacocoReport::class) {
7070
tasks.register("runTestCoverage") {
7171
group = "Quality"
7272
description = "Report code coverage on tests within the Android codebase."
73-
dependsOn("jacocoReport")
73+
dependsOn(jacocoReport)
7474
}
7575

7676
val detektAll by tasks.registering(Detekt::class) {

0 commit comments

Comments
 (0)