Skip to content

Commit b32531c

Browse files
Update Gradle to 9.3.0 and Maven to 3.9.12
This change updates both the Gradle wrapper used for the build, and also the Gradle version bundled in the fabric-javaenv Docker image. Maven is also updated to 3.9.12 within the Docker image. Several dependency versions are also updated. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent bdb8e5a commit b32531c

File tree

21 files changed

+54
-53
lines changed

21 files changed

+54
-53
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
plugins {
88
id "com.github.ben-manes.versions" version "0.53.0"
9-
id "com.diffplug.spotless" version "8.0.0"
10-
id "com.gradleup.nmcp.aggregation" version "1.2.0"
11-
id "com.gradleup.nmcp" version "1.2.0" apply false
9+
id "com.diffplug.spotless" version "8.1.0"
10+
id "com.gradleup.nmcp.aggregation" version "1.4.3"
11+
id "com.gradleup.nmcp" version "1.4.3" apply false
1212
}
1313

1414
version = '2.5.8'
@@ -66,14 +66,14 @@ subprojects {
6666
}
6767

6868
dependencies {
69-
implementation 'commons-cli:commons-cli:1.10.0'
69+
implementation 'commons-cli:commons-cli:1.11.0'
7070
implementation 'commons-logging:commons-logging:1.3.5'
7171

72-
testImplementation platform('org.junit:junit-bom:6.0.0')
72+
testImplementation platform('org.junit:junit-bom:6.0.2')
7373
testImplementation 'org.junit.jupiter:junit-jupiter'
7474
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
7575
testImplementation 'org.assertj:assertj-core:3.27.6'
76-
testImplementation 'org.mockito:mockito-core:5.20.0'
76+
testImplementation 'org.mockito:mockito-core:5.21.0'
7777
testImplementation 'uk.org.webcompere:system-stubs-jupiter:2.1.8'
7878

7979
testImplementation 'org.hamcrest:hamcrest-library:3.0'

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'com.gradleup.shadow' version '9.2.2'
2+
id 'com.gradleup.shadow' version '9.3.1'
33
id 'java'
44
}
55

@@ -14,11 +14,11 @@ repositories {
1414

1515
dependencies {
1616
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.7'
17-
implementation 'org.json:json:20250517'
18-
testImplementation platform('org.junit:junit-bom:6.0.1')
17+
implementation 'org.json:json:20251224'
18+
testImplementation platform('org.junit:junit-bom:6.0.2')
1919
testImplementation 'org.junit.jupiter:junit-jupiter'
2020
testImplementation 'org.assertj:assertj-core:3.27.6'
21-
testImplementation 'org.mockito:mockito-core:5.20.0'
21+
testImplementation 'org.mockito:mockito-core:5.21.0'
2222
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2323
}
2424

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
55

66

77
plugins {
8-
id("com.gradleup.shadow") version "9.2.2"
8+
id("com.gradleup.shadow") version "9.3.1"
99
id("org.jetbrains.kotlin.jvm") version "2.2.21"
1010
}
1111

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'com.gradleup.shadow' version '9.2.2'
2+
id 'com.gradleup.shadow' version '9.3.1'
33
id 'java'
44
}
55

@@ -14,11 +14,11 @@ repositories {
1414

1515
dependencies {
1616
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.7'
17-
implementation 'org.json:json:20250517'
18-
testImplementation platform('org.junit:junit-bom:6.0.1')
17+
implementation 'org.json:json:20251224'
18+
testImplementation platform('org.junit:junit-bom:6.0.2')
1919
testImplementation 'org.junit.jupiter:junit-jupiter'
2020
testImplementation 'org.assertj:assertj-core:3.27.6'
21-
testImplementation 'org.mockito:mockito-core:5.20.0'
21+
testImplementation 'org.mockito:mockito-core:5.21.0'
2222
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2323
}
2424

examples/fabric-contract-example-maven/pom.xml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,11 @@
8989
<artifactId>junit-jupiter-engine</artifactId>
9090
<scope>test</scope>
9191
</dependency>
92-
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
93-
<dependency>
94-
<groupId>org.mockito</groupId>
95-
<artifactId>mockito-core</artifactId>
96-
<version>5.21.0</version>
97-
</dependency>
98-
99-
<!-- https://mvnrepository.com/artifact/org.json/json -->
92+
<dependency>
93+
<groupId>org.mockito</groupId>
94+
<artifactId>mockito-core</artifactId>
95+
<version>5.21.0</version>
96+
</dependency>
10097
<dependency>
10198
<groupId>org.json</groupId>
10299
<artifactId>json</artifactId>

examples/ledger-api/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'com.gradleup.shadow' version '9.2.2'
2+
id 'com.gradleup.shadow' version '9.3.1'
33
id 'java'
44
}
55

@@ -14,11 +14,11 @@ repositories {
1414

1515
dependencies {
1616
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.7'
17-
implementation 'org.json:json:20250517'
18-
testImplementation platform('org.junit:junit-bom:6.0.0')
17+
implementation 'org.json:json:20251224'
18+
testImplementation platform('org.junit:junit-bom:6.0.2')
1919
testImplementation 'org.junit.jupiter:junit-jupiter'
2020
testImplementation 'org.assertj:assertj-core:3.27.6'
21-
testImplementation 'org.mockito:mockito-core:5.20.0'
21+
testImplementation 'org.mockito:mockito-core:5.21.0'
2222
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2323
}
2424

fabric-chaincode-docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ RUN curl -s "https://get.sdkman.io" | bash
88

99
SHELL ["/bin/bash", "-c"]
1010

11-
RUN source /root/.sdkman/bin/sdkman-init.sh \
12-
&& sdk install gradle 9.1.0 \
13-
&& sdk install maven 3.9.11
11+
RUN . /root/.sdkman/bin/sdkman-init.sh \
12+
&& sdk install gradle 9.3.0 \
13+
&& sdk install maven 3.9.12
1414

1515
FROM ${JAVA_IMAGE} AS dependencies
1616

@@ -48,7 +48,7 @@ RUN gradle \
4848
WORKDIR /root/chaincode-java
4949
# Run the Gradle and Maven commands to generate the wrapper variants
5050
# of each tool
51-
#Gradle doesn't run without settings.gradle file, so create one
51+
# Gradle doesn't run without settings.gradle file, so create one
5252
RUN touch settings.gradle \
5353
&& gradle wrapper \
5454
&& ./gradlew wrapper \

fabric-chaincode-docker/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
plugins {
8-
id 'com.bmuschko.docker-remote-api' version '9.4.0'
8+
id 'com.bmuschko.docker-remote-api' version '10.0.0'
99
}
1010

1111
repositories {

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:20250517'
4+
implementation 'org.json:json:20251224'
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
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'com.gradleup.shadow' version '9.2.2'
2+
id 'com.gradleup.shadow' version '9.3.1'
33
id 'java'
44
}
55

0 commit comments

Comments
 (0)