Skip to content

Commit a843780

Browse files
Unify named tasks configuration
1 parent 79f0418 commit a843780

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

build-logic/src/main/kotlin/internal.jacoco-convention.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id("jacoco")
44
}
55

6-
tasks.named<JacocoReport>("jacocoTestReport") {
6+
tasks.named<JacocoReport>("jacocoTestReport").configure {
77
dependsOn(tasks.named("test"))
88

99
reports {
@@ -13,6 +13,6 @@ tasks.named<JacocoReport>("jacocoTestReport") {
1313
}
1414
}
1515

16-
tasks.named<Task>("check") {
16+
tasks.named<Task>("check").configure {
1717
finalizedBy(tasks.named("jacocoTestReport"))
1818
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ spotless {
9999
}
100100
}
101101

102-
tasks.named<Task>("check") {
102+
tasks.named<Task>("check").configure {
103103
dependsOn(tasks.named<JacocoReport>("testCodeCoverageReport"))
104104
}
105105

0 commit comments

Comments
 (0)