Skip to content

Commit f349af1

Browse files
committed
Only generate jacoco report
1 parent 39dcfd8 commit f349af1

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

build.gradle

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -55,32 +55,6 @@ jacocoTestReport {
5555
html.enabled true
5656
csv.enabled false
5757
}
58-
59-
afterEvaluate {
60-
classDirectories = files(classDirectories.files.collect {
61-
fileTree(dir: it, exclude: [
62-
'**/configuration/**'
63-
])
64-
})
65-
}
66-
}
67-
68-
jacocoTestCoverageVerification {
69-
afterEvaluate {
70-
classDirectories = files(classDirectories.files.collect {
71-
fileTree(dir: it, exclude: [
72-
'**/configuration/**'
73-
])
74-
})
75-
}
76-
77-
violationRules {
78-
rule {
79-
limit {
80-
minimum = 0.8
81-
}
82-
}
83-
}
8458
}
8559

8660
sonarqube {
@@ -97,7 +71,10 @@ test {
9771
events "passed", "skipped", "failed"
9872
}
9973

100-
finalizedBy jacocoTestReport, jacocoTestCoverageVerification
74+
jacoco {
75+
excludes += [ '**/configuration/**' ]
76+
}
77+
finalizedBy jacocoTestReport
10178
}
10279

10380
if (!project.hasProperty("REPOSITORY_URI")) {

0 commit comments

Comments
 (0)