mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
The latest fabric-gateway client API release (v1.7.0) includes the gRPC error details in the GatewayExcetion stack trace so it is not necessary to programmatically access them to demonstrate that they are present. This change updates the asset-transfer-basic/application-gateway-java sample to simplify the updateNonExistentAsset example method. It also: - Updates all samples to use the latest fabric-gateway release. - Adds equivalent Maven POM files for fabric-gateway application samples. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
38 lines
804 B
Groovy
38 lines
804 B
Groovy
/*
|
|
* Copyright IBM Corp. All Rights Reserved.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
plugins {
|
|
id 'application' // Support for building a CLI application in Java.
|
|
id 'checkstyle'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.hyperledger.fabric:fabric-gateway:1.7.0'
|
|
implementation platform('com.google.protobuf:protobuf-bom:4.28.2')
|
|
implementation 'org.hyperledger.fabric:fabric-protos:0.3.4'
|
|
implementation platform('io.grpc:grpc-bom:1.67.1')
|
|
compileOnly 'io.grpc:grpc-api'
|
|
runtimeOnly 'io.grpc:grpc-netty-shaded'
|
|
implementation 'com.google.code.gson:gson:2.11.0'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(11)
|
|
}
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion '10.3'
|
|
}
|
|
|
|
application {
|
|
mainClass = 'App'
|
|
}
|