Skip to content

Commit 086f6b5

Browse files
Update dependencies to address CVE-2024-7254 (#353)
Also the following dependency changes: - Remove obsolete JUnit 4. - Replace com.github.stefanbirkner:system-rules with uk.org.webcompere:system-stubs-jupiter since the former appears not to work correctly with JUnit 5. - Update versions following v2.5.3 release. Signed-off-by: Mark S. Lewis <[email protected]>
1 parent a645338 commit 086f6b5

File tree

55 files changed

+567
-692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+567
-692
lines changed

build.gradle

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

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

1113

1214
// If the nightly property is set, then this is the scheduled main
@@ -46,18 +48,16 @@ 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'
53-
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'
57-
58-
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'
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'
55+
56+
testImplementation 'org.hamcrest:hamcrest-library:3.0'
57+
testImplementation 'org.mockito:mockito-core:5.13.0'
58+
testImplementation 'uk.org.webcompere:system-stubs-jupiter:2.1.6'
59+
60+
testImplementation 'org.assertj:assertj-core:3.26.3'
6161
}
6262

6363
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.4', '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-integration-test/src/contracts/bare-gradle/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919
}
2020

2121
dependencies {
22-
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.3'
22+
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.4'
2323
implementation 'org.hyperledger.fabric:fabric-protos:0.3.3'
2424
}
2525

fabric-chaincode-integration-test/src/contracts/bare-maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1313

1414
<!-- fabric-chaincode-java -->
15-
<fabric-chaincode-java.version>2.5.3</fabric-chaincode-java.version>
15+
<fabric-chaincode-java.version>2.5.4</fabric-chaincode-java.version>
1616

1717
</properties>
1818

fabric-chaincode-integration-test/src/contracts/fabric-ledger-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repositories {
2525
}
2626

2727
dependencies {
28-
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.3'
28+
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.4'
2929
implementation 'org.hyperledger.fabric:fabric-protos:0.3.3'
3030
}
3131

0 commit comments

Comments
 (0)