Skip to content

Commit cc32c6c

Browse files
Update dependencies to address CVE-2024-7254
Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent a645338 commit cc32c6c

File tree

9 files changed

+43
-50
lines changed

9 files changed

+43
-50
lines changed

build.gradle

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
apply plugin: 'idea'
8-
apply plugin: 'eclipse-wtp'
7+
plugins {
8+
id "com.github.ben-manes.versions" version "0.51.0"
9+
}
10+
911
version = '2.5.3'
1012

1113

@@ -46,18 +48,18 @@ subprojects {
4648
}
4749

4850
dependencies {
49-
implementation 'commons-cli:commons-cli:1.6.0'
50-
implementation 'commons-logging:commons-logging:1.2'
51-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
52-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
51+
implementation 'commons-cli:commons-cli:1.9.0'
52+
implementation 'commons-logging:commons-logging:1.3.4'
53+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.0'
54+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.0'
5355

54-
testImplementation 'org.hamcrest:hamcrest-library:1.3'
55-
testImplementation 'org.mockito:mockito-core:2.23.0'
56-
testImplementation 'com.github.stefanbirkner:system-rules:system-rules-1.17.0'
56+
testImplementation 'org.hamcrest:hamcrest-library:3.0'
57+
testImplementation 'org.mockito:mockito-core:5.13.0'
58+
testImplementation 'com.github.stefanbirkner:system-rules:1.19.0'
5759

5860
testCompileOnly 'junit:junit:4.13.2'
59-
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.10.2'
60-
testImplementation 'org.assertj:assertj-core:3.9.1'
61+
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.11.0'
62+
testImplementation 'org.assertj:assertj-core:3.26.3'
6163
}
6264

6365
test {

examples/fabric-contract-example-as-service/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ repositories {
2222

2323
dependencies {
2424
compile 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.2'
25-
compile 'org.json:json:20231013'
26-
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
27-
testImplementation 'org.assertj:assertj-core:3.11.1'
28-
testImplementation 'org.mockito:mockito-core:2.+'
25+
compile 'org.json:json:20240303'
26+
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0'
27+
testImplementation 'org.assertj:assertj-core:3.26.3'
28+
testImplementation 'org.mockito:mockito-core:5.13.0'
2929
}
3030

3131
shadowJar {

examples/fabric-contract-example-gradle-kotlin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ version = "0.0.1"
1515

1616
dependencies {
1717
implementation("org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.2")
18-
implementation("org.json:json:20231013")
18+
implementation("org.json:json:20240303")
1919
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
2020

21-
testImplementation("org.junit.jupiter:junit-jupiter:5.4.2")
21+
testImplementation("org.junit.jupiter:junit-jupiter:5.11.0")
2222
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0")
2323
}
2424

examples/fabric-contract-example-gradle/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ repositories {
2222

2323
dependencies {
2424
compile 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.2'
25-
compile 'org.json:json:20231013'
26-
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
27-
testImplementation 'org.assertj:assertj-core:3.11.1'
28-
testImplementation 'org.mockito:mockito-core:2.+'
25+
compile 'org.json:json:20240303'
26+
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0'
27+
testImplementation 'org.assertj:assertj-core:3.26.3'
28+
testImplementation 'org.mockito:mockito-core:5.13.0'
2929
}
3030

3131
shadowJar {

examples/ledger-api/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ repositories {
2222

2323
dependencies {
2424
compile 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.2'
25-
compile 'org.json:json:20231013'
26-
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
27-
testImplementation 'org.assertj:assertj-core:3.11.1'
28-
testImplementation 'org.mockito:mockito-core:2.+'
25+
compile 'org.json:json:20240303'
26+
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0'
27+
testImplementation 'org.assertj:assertj-core:3.26.3'
28+
testImplementation 'org.mockito:mockito-core:5.13.0'
2929
}
3030

3131
shadowJar {

fabric-chaincode-docker/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ buildscript {
99
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
1010
maven { url "https://www.jitpack.io" }
1111
mavenCentral()
12+
gradlePluginPortal()
1213
}
1314
dependencies {
14-
classpath 'com.bmuschko:gradle-docker-plugin:5.1.0'
15+
classpath 'com.bmuschko:gradle-docker-plugin:9.4.0'
1516
}
1617
}
1718

@@ -64,6 +65,6 @@ task copyAllDeps(type: Copy) {
6465
task buildImage(type: DockerBuildImage) {
6566
dependsOn copyAllDeps
6667
inputDir = project.file('Dockerfile').parentFile
67-
tags = ['hyperledger/fabric-javaenv', 'hyperledger/fabric-javaenv:2.5', 'hyperledger/fabric-javaenv:amd64-2.5.3', 'hyperledger/fabric-javaenv:amd64-latest']
68+
images = ['hyperledger/fabric-javaenv', 'hyperledger/fabric-javaenv:2.5', 'hyperledger/fabric-javaenv:amd64-2.5.3', 'hyperledger/fabric-javaenv:amd64-latest']
6869
}
6970

fabric-chaincode-integration-test/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dependencies {
22
implementation project(':fabric-chaincode-docker')
33
implementation project(':fabric-chaincode-shim')
4-
implementation 'org.json:json:20231013'
4+
implementation 'org.json:json:20240303'
55
}
66

77

fabric-chaincode-shim/build.gradle

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,16 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
buildscript {
7-
repositories {
8-
mavenCentral()
9-
}
10-
dependencies {
11-
classpath 'org.owasp:dependency-check-gradle:8.4.0'
12-
}
13-
}
146

157
plugins {
168
id 'maven-publish'
179
id 'jacoco'
1810
id 'signing'
1911
id 'checkstyle'
20-
id 'org.cyclonedx.bom' version '1.8.1'
2112
}
2213

2314
checkstyle {
24-
toolVersion '10.12.5'
15+
toolVersion '10.18.1'
2516
configFile file("../ci/checkstyle/checkstyle.xml")
2617
configProperties = [root_dir: file("..") ]
2718
}
@@ -54,34 +45,33 @@ tasks.withType(org.gradle.api.tasks.testing.Test) {
5445
}
5546

5647
dependencies {
48+
implementation platform('com.google.protobuf:protobuf-bom:3.25.5')
49+
implementation platform('io.grpc:grpc-bom:1.68.0')
50+
implementation platform('io.opentelemetry:opentelemetry-bom:1.42.1')
51+
5752
implementation 'org.hyperledger.fabric:fabric-protos:0.3.3'
5853
implementation 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
5954
implementation 'org.bouncycastle:bcprov-jdk18on:1.78.1'
60-
implementation 'io.github.classgraph:classgraph:4.8.165'
55+
implementation 'io.github.classgraph:classgraph:4.8.176'
6156
implementation 'com.github.everit-org.json-schema:org.everit.json.schema:1.14.4'
6257
implementation 'org.json:json:20240303'
63-
implementation 'com.google.protobuf:protobuf-java-util:3.24.4'
58+
implementation 'com.google.protobuf:protobuf-java-util'
6459

65-
// Required if using Java 11+ as no longer bundled in the core libraries
66-
testImplementation 'javax.xml.bind:jaxb-api:2.3.1'
67-
68-
implementation platform('io.grpc:grpc-bom:1.60.0')
6960
implementation 'io.grpc:grpc-netty-shaded'
7061
implementation 'io.grpc:grpc-protobuf'
7162
implementation 'io.grpc:grpc-stub'
72-
7363
testImplementation 'io.grpc:grpc-inprocess'
74-
75-
implementation platform("io.opentelemetry:opentelemetry-bom:1.32.0")
64+
// Required if using Java 11+ as no longer bundled in the core libraries
65+
testImplementation 'javax.xml.bind:jaxb-api:2.3.1'
7666

7767
implementation 'io.opentelemetry:opentelemetry-api'
78-
implementation 'io.opentelemetry.proto:opentelemetry-proto:1.0.0-alpha'
68+
implementation 'io.opentelemetry.proto:opentelemetry-proto:1.3.2-alpha'
7969
implementation 'io.opentelemetry:opentelemetry-sdk'
8070
implementation 'io.opentelemetry:opentelemetry-sdk-extension-autoconfigure'
8171
implementation 'io.opentelemetry:opentelemetry-sdk-trace'
8272
implementation 'io.opentelemetry:opentelemetry-exporter-otlp'
8373
implementation 'io.opentelemetry:opentelemetry-extension-trace-propagators'
84-
implementation 'io.opentelemetry.instrumentation:opentelemetry-grpc-1.6:1.32.0-alpha'
74+
implementation 'io.opentelemetry.instrumentation:opentelemetry-grpc-1.6:2.8.0-alpha'
8575
}
8676

8777
sourceSets {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)