Skip to content

Commit 4266cd9

Browse files
Update Gradle from 9.4.1 to 9.5.0
Also updates some dependencies: - nmcp from 1.4.4 to 1.5.0 - pmd from 7.20.0 to 7.24.0 - grpc from 1.80.0 to 1.81.0 - opentelemetry-grpc-1.6 from 2.26.1-alpha to 2.27.0-alpha Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent 5cd4f45 commit 4266cd9

8 files changed

Lines changed: 26 additions & 38 deletions

File tree

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
plugins {
88
id "com.github.ben-manes.versions" version "0.54.0"
99
id "com.diffplug.spotless" version "8.4.0"
10-
id "com.gradleup.nmcp.aggregation" version "1.4.4"
11-
id "com.gradleup.nmcp" version "1.4.4" apply false
10+
id "com.gradleup.nmcp.aggregation" version "1.5.0"
11+
id "com.gradleup.nmcp" version "1.5.0" apply false
1212
}
1313

1414
version = '2.5.9'
@@ -38,6 +38,7 @@ dependencies {
3838

3939
allprojects {
4040
apply plugin: "com.diffplug.spotless"
41+
apply plugin: "com.github.ben-manes.versions"
4142

4243
repositories {
4344
mavenCentral()

fabric-chaincode-docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN curl -s "https://get.sdkman.io" | bash
99
SHELL ["/bin/bash", "-c"]
1010

1111
RUN . /root/.sdkman/bin/sdkman-init.sh \
12-
&& sdk install gradle 9.4.1 \
12+
&& sdk install gradle 9.5.0 \
1313
&& sdk install maven 3.9.15
1414

1515
FROM ${JAVA_IMAGE} AS dependencies

fabric-chaincode-shim/build.gradle

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ plugins {
99
id 'signing'
1010
id 'jacoco'
1111
id 'pmd'
12-
id "com.gradleup.nmcp"
12+
id 'com.gradleup.nmcp'
1313
}
1414

1515
pmd {
16-
toolVersion = '7.20.0'
16+
toolVersion = '7.24.0'
1717
ruleSetFiles = files('../pmd-ruleset.xml')
1818
ruleSets = [] // explicitly set to empty to avoid using the default configuration
1919
ignoreFailures = false
20+
consoleOutput = true
2021
}
2122

2223
pmdTest.enabled = false
@@ -30,13 +31,8 @@ tasks.withType(Test).configureEach {
3031
}
3132

3233
dependencies {
33-
constraints {
34-
pmd('org.apache.commons:commons-lang3:3.19.0') {
35-
because('CVE-2025-48924')
36-
}
37-
}
3834
implementation platform('com.google.protobuf:protobuf-bom:4.34.1')
39-
implementation platform('io.grpc:grpc-bom:1.80.0')
35+
implementation platform('io.grpc:grpc-bom:1.81.0')
4036
implementation platform('io.opentelemetry:opentelemetry-bom:1.61.0')
4137
implementation platform("org.bouncycastle:bc-jdk18on-bom:1.84")
4238

@@ -61,7 +57,7 @@ dependencies {
6157
implementation 'io.opentelemetry:opentelemetry-exporter-otlp'
6258
implementation 'io.opentelemetry:opentelemetry-extension-trace-propagators'
6359
implementation 'io.opentelemetry.semconv:opentelemetry-semconv:1.40.0'
64-
implementation 'io.opentelemetry.instrumentation:opentelemetry-grpc-1.6:2.26.1-alpha'
60+
implementation 'io.opentelemetry.instrumentation:opentelemetry-grpc-1.6:2.27.0-alpha'
6561
}
6662

6763
sourceSets {
@@ -283,8 +279,8 @@ signing {
283279
useInMemoryPgpKeys(signingKey, signingPassword)
284280

285281
required = {
286-
gradle.taskGraph.hasTask(":${project.name}:publishShimPublicationToNmcpRepository")
287-
|| gradle.taskGraph.hasTask(":${project.name}:publishShimPublicationToGitHubRepository")
282+
gradle.taskGraph.hasTask(":${project.name}:publishShimPublicationToNmcpRepository") ||
283+
gradle.taskGraph.hasTask(":${project.name}:publishShimPublicationToGitHubRepository")
288284
}
289285

290286
sign publishing.publications.shim

fabric-chaincode-shim/src/main/java/org/hyperledger/fabric/shim/impl/InvocationStubImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class InvocationStubImpl implements ChaincodeStub {
6666
private static final String UNSPECIFIED_END_KEY = "";
6767
private static final Logger LOGGER = Logger.getLogger(InvocationStubImpl.class.getName());
6868

69-
public static final String MAX_UNICODE_RUNE = "\udbff\udfff";
69+
private static final String MAX_UNICODE_RUNE = "\udbff\udfff";
7070
private static final String CORE_PEER_LOCALMSPID = "CORE_PEER_LOCALMSPID";
7171

7272
private static final Function<QueryResultBytes, org.hyperledger.fabric.protos.ledger.queryresult.KeyModification>

gradle/wrapper/gradle-wrapper.jar

-504 Bytes
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
44
networkTimeout=10000
5+
retries=0
6+
retryBackOffMs=500
57
validateDistributionUrl=true
68
zipStoreBase=GRADLE_USER_HOME
79
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 10 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)