File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- apply plugin : " jacoco"
1
+ apply plugin : ' jacoco'
2
2
3
3
jacoco {
4
- toolVersion = " 0.8.5 "
4
+ toolVersion = ' 0.8.13 '
5
5
}
6
6
7
7
tasks. register(' forkedTestJacocoData' ) {
8
- dependsOn " forkedTest"
8
+ dependsOn ' forkedTest'
9
9
10
10
doLast {
11
- if (file(" $b uildDir / jacoco/forkedTest.exec" ) . exists()) {
11
+ if (layout . buildDirectory . file(' jacoco/forkedTest.exec' ) . get() . asFile . exists()) {
12
12
jacocoTestReport {
13
13
executionData(forkedTest)
14
14
}
@@ -24,19 +24,19 @@ tasks.named('jacocoTestReport').configure {
24
24
reports {
25
25
xml. required = true
26
26
csv. required = false
27
- html. destination file( " ${ buildDir } / reports/jacoco/ " )
27
+ html. outputLocation = layout . buildDirectory . dir( ' reports/jacoco' )
28
28
}
29
29
}
30
30
31
- if (! project. ext. hasProperty(" excludedClassesCoverage" )) {
31
+ if (! project. ext. hasProperty(' excludedClassesCoverage' )) {
32
32
project. ext. excludedClassesCoverage = []
33
33
}
34
34
35
- if (! project. ext. hasProperty(" excludedClassesBranchCoverage" )) {
35
+ if (! project. ext. hasProperty(' excludedClassesBranchCoverage' )) {
36
36
project. ext. excludedClassesBranchCoverage = []
37
37
}
38
38
39
- if (! project. ext. hasProperty(" excludedClassesInstructionCoverage" )) {
39
+ if (! project. ext. hasProperty(' excludedClassesInstructionCoverage' )) {
40
40
project. ext. excludedClassesInstructionCoverage = []
41
41
}
42
42
@@ -74,7 +74,7 @@ afterEvaluate {
74
74
}
75
75
76
76
// Disable verification if skipTests property was specified
77
- onlyIf { ! project. rootProject. hasProperty(" skipTests" ) }
77
+ onlyIf { ! project. rootProject. hasProperty(' skipTests' ) }
78
78
}
79
79
80
80
tasks. named(' jacocoTestCoverageVerification' ). configure {
You can’t perform that action at this time.
0 commit comments