Skip to content

Commit

Permalink
Merge branch 'jacoco-toolversion'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Feb 6, 2018
2 parents 5eda399 + 866e07d commit 85a50e0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ dependencies {
checkstyle 'com.puppycrawl.tools:checkstyle:8.8'
}

jacoco {
toolVersion = '0.8.0'
}

dependencyUpdates {
outputFormatter = "json"
}
Expand Down Expand Up @@ -227,7 +231,16 @@ dependencyUpdates.resolutionStrategy = {
selection.reject("http://dev.mysql.com/downloads/connector/j/ lists the version 5.* as last stable version.")
}
}

withModule("org.jacoco.agent") { ComponentSelection selection ->
if (selection.candidate.version.equals("0.8.0")) {
selection.reject("As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden.")
}
}
withModule("org.jacoco.ant") { ComponentSelection selection ->
if (selection.candidate.version.equals("0.8.0")) {
selection.reject("As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden.")
}
}
}
}

Expand Down Expand Up @@ -391,7 +404,6 @@ afterEvaluate {
def junitPlatformTest = tasks.junitPlatformTest

jacoco {
toolVersion = '0.8.0'
applyTo(junitPlatformTest)
}

Expand Down

0 comments on commit 85a50e0

Please sign in to comment.