Skip to content

Commit 63550fc

Browse files
committed
Use OpenClover 4.2.0 for coverage (no license required anymore)
1 parent e5123d0 commit 63550fc

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ bin/
2323
*.log
2424
*.graphml
2525
coverage.db*
26-
clover.license
2726
out
2827
.metadata

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pipeline {
6161
}
6262
stage('Coverage') {
6363
steps {
64-
sh './gradlew --no-daemon -PenableClover clean cloverHtmlReport cloverXmlReport'
64+
sh './gradlew --no-daemon --refresh-dependencies -PenableClover clean cloverHtmlReport cloverXmlReport'
6565
}
6666
post {
6767
success {

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ Ask JUnit 5 related questions on [StackOverflow] or chat with us on [Gitter].
4242

4343
## Code Coverage
4444

45-
Code coverage using [Clover] for the latest build is available on the [Jenkins CI server].
46-
We are thankful to [Atlassian] for providing the Clover license free of charge.
45+
Code coverage using [OpenClover] for the latest build is available on the
46+
[Jenkins CI server].
4747

4848
A code coverage report can also be generated locally by executing
49-
`gradlew -PenableClover clean cloverHtmlReport` if you have a local Clover license file
50-
on your computer. The results will be available in
51-
`junit-tests/build/reports/clover/html/index.html`.
49+
`gradlew -PenableClover clean cloverHtmlReport`. The results will be available in
50+
`build/reports/clover/html/index.html`.
5251

5352
## Gradle Build Scans
5453

@@ -143,9 +142,8 @@ The `junit-platform-console-standalone` JAR does not provide an automatic module
143142
as it is not intended to be used as a module.
144143

145144

146-
[Atlassian]: https://www.atlassian.com/
147145
[Automatic-Module-Name]: http://mail.openjdk.java.net/pipermail/jpms-spec-experts/2017-April/000667.html
148-
[Clover]: https://www.atlassian.com/software/clover/
146+
[OpenClover]: http://openclover.org
149147
[CONTRIBUTING.md]: https://github.com/junit-team/junit5/blob/master/CONTRIBUTING.md
150148
[Gitter]: https://gitter.im/junit-team/junit5
151149
[Jenkins CI server]: https://junit.ci.cloudbees.com/job/JUnit5/lastSuccessfulBuild/clover-report/

build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ allprojects { subproj ->
194194
}
195195

196196
dependencies {
197-
clover('com.atlassian.clover:clover:4.1.2')
197+
clover('org.openclover:clover:4.2.0')
198198
}
199199

200200
ext.cloverDir = file("$buildDir/clover")
@@ -203,10 +203,7 @@ allprojects { subproj ->
203203
def instrumentedJavaSourcesDir = file("$cloverDir/instrumentedSources/java")
204204

205205
task cloverTaskdef {
206-
def cloverLicensePath = (project.hasProperty('clover.license.path')
207-
? project.property('clover.license.path') : rootProject.file('clover.license').absolutePath)
208206
ant.taskdef(resource:'cloverlib.xml', classpath: configurations.clover.asPath)
209-
ant.property(name: 'clover.license.path', value: cloverLicensePath)
210207
}
211208

212209
task cloverInstrumentJava(dependsOn: cloverTaskdef) {

clover.license.enc

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)