Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(test): fix jacoco incompatible problem #6076

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions actuator/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
description = "actuator – a series of transactions for blockchain."

apply plugin: "jacoco"

jacoco {
toolVersion = rootProject.ext.jacocoVersion
}

dependencies {
api project(":chainbase")
api project(":protocol")
Expand Down
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ allprojects {
apply plugin: "java-library"
}

ext {
jacocoVersion = "0.8.8"
}

subprojects {
apply plugin: "jacoco"
apply plugin: "maven-publish"

sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
6 changes: 6 additions & 0 deletions chainbase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ def jacocoVersion = "0.8.0"
def jansiVersion = "1.16"
// --------------------------------------

apply plugin: "jacoco"

jacoco {
toolVersion = rootProject.ext.jacocoVersion
}

dependencies {
api project(":protocol")
api project(":common")
Expand Down
5 changes: 5 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ sourceCompatibility = 1.8
// ---------------------------------------
def leveldbVersion = "1.8"
// --------------------------------------
apply plugin: "jacoco"

jacoco {
toolVersion = rootProject.ext.jacocoVersion
}

static def isWindows() {
return org.gradle.internal.os.OperatingSystem.current().isWindows()
Expand Down
8 changes: 7 additions & 1 deletion consensus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ dependencies {
api project(":protocol")
}

apply plugin: "jacoco"

jacoco {
toolVersion = rootProject.ext.jacocoVersion
}

test {

testLogging {
Expand Down Expand Up @@ -41,4 +47,4 @@ jacocoTestReport {
fileTree(dir: it,)
}
}
}
}
8 changes: 7 additions & 1 deletion crypto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ version '1.0.0'

sourceCompatibility = 1.8

apply plugin: "jacoco"

jacoco {
toolVersion = rootProject.ext.jacocoVersion
}

repositories {
mavenCentral()
}
Expand All @@ -25,4 +31,4 @@ jacocoTestReport {
fileTree(dir: it,)
}
}
}
}
5 changes: 1 addition & 4 deletions framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ def versions = [
checkstyle: '8.7',
]

jacoco {
toolVersion = "0.8.8"
}


configurations {
Expand Down Expand Up @@ -157,7 +154,7 @@ jacocoTestReport {
*/

offlinsCoverage {
jacocoVersion = '0.8.8' // Optional. By default `0.8.8`
jacocoVersion = rootProject.ext.jacocoVersion // Optional. By default `0.8.8`

reports {
html.enabled.set true // Optional. By default `true`
Expand Down
3 changes: 2 additions & 1 deletion plugins/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ plugins {

apply plugin: 'application'
apply plugin: 'checkstyle'
apply plugin: "jacoco"

jacoco {
toolVersion = "0.8.4"
toolVersion = rootProject.ext.jacocoVersion
}
def versions = [
checkstyle: '8.7',
Expand Down
Loading