From 45e7318fcb230c4c9710cd6dce27df66a9d1f287 Mon Sep 17 00:00:00 2001 From: halibobo1205 Date: Wed, 16 Oct 2024 14:41:12 +0800 Subject: [PATCH] feat(jacoco): upgrade jacoco from 0.8.8 to 0.8.10 --- build.gradle | 4 +++- chainbase/build.gradle | 4 ---- framework/build.gradle | 5 +---- plugins/build.gradle | 3 --- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 8db08f4fe7e..d5f5fdba923 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,9 @@ subprojects { targetCompatibility = JavaVersion.VERSION_1_8 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' - + jacoco { + toolVersion = "0.8.10" + } buildscript { repositories { mavenCentral() diff --git a/chainbase/build.gradle b/chainbase/build.gradle index 79a246014d7..997e789a391 100644 --- a/chainbase/build.gradle +++ b/chainbase/build.gradle @@ -2,7 +2,6 @@ description = "chainbase – a decentralized database for blockchain." // Dependency versions // --------------------------------------- -def jacocoVersion = "0.8.0" def jansiVersion = "1.16" // -------------------------------------- @@ -41,9 +40,6 @@ test { } } -jacoco { - toolVersion = jacocoVersion // See http://www.eclemma.org/jacoco/. -} jacocoTestReport { reports { diff --git a/framework/build.gradle b/framework/build.gradle index 4519f93e44d..d000777cc74 100644 --- a/framework/build.gradle +++ b/framework/build.gradle @@ -17,9 +17,6 @@ def versions = [ checkstyle: '8.7', ] -jacoco { - toolVersion = "0.8.8" -} configurations { @@ -157,7 +154,7 @@ jacocoTestReport { */ offlinsCoverage { - jacocoVersion = '0.8.8' // Optional. By default `0.8.8` + jacocoVersion = jacoco.toolVersion reports { html.enabled.set true // Optional. By default `true` diff --git a/plugins/build.gradle b/plugins/build.gradle index b85a435dc30..03ac6d84150 100644 --- a/plugins/build.gradle +++ b/plugins/build.gradle @@ -5,9 +5,6 @@ plugins { apply plugin: 'application' apply plugin: 'checkstyle' -jacoco { - toolVersion = "0.8.4" -} def versions = [ checkstyle: '8.7', ]