Skip to content

Commit 00b624f

Browse files
add jacoco version config
1 parent 59a6c6c commit 00b624f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

chainbase/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ description = "chainbase – a decentralized database for blockchain."
22

33
// Dependency versions
44
// ---------------------------------------
5-
def jacocoVersion = "0.8.0"
65
def jansiVersion = "1.16"
76
// --------------------------------------
87

@@ -42,7 +41,7 @@ test {
4241
}
4342

4443
jacoco {
45-
toolVersion = jacocoVersion // See http://www.eclemma.org/jacoco/.
44+
toolVersion = rootProject.ext.jacocoVersion // See http://www.eclemma.org/jacoco/.
4645
}
4746

4847
jacocoTestReport {

config.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ext {
2+
jacocoVersion = "0.8.8"
23
jacocoNeedFilterClasses = [
34
'org/tron/core/net/message/adv/**',
45
'org/tron/core/net/message/base/**',

framework/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def versions = [
1818
]
1919

2020
jacoco {
21-
toolVersion = "0.8.8"
21+
toolVersion = rootProject.ext.jacocoVersion
2222
}
2323

2424
tasks.withType(Test) {
@@ -160,7 +160,7 @@ jacocoTestReport {
160160
*/
161161

162162
offlinsCoverage {
163-
jacocoVersion = '0.8.8' // Optional. By default `0.8.8`
163+
jacocoVersion = rootProject.ext.jacocoVersion // Optional. By default `0.8.8`
164164

165165
reports {
166166
html.enabled.set true // Optional. By default `true`

plugins/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apply plugin: 'application'
66
apply plugin: 'checkstyle'
77

88
jacoco {
9-
toolVersion = "0.8.8"
9+
toolVersion = rootProject.ext.jacocoVersion
1010
}
1111
def versions = [
1212
checkstyle: '8.7',

0 commit comments

Comments
 (0)