mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
Include specific gRPC TLS implementation in dependencies instead of relying on an appropriate one to be present as a transitive dependency. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
36 lines
692 B
Groovy
36 lines
692 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.2.2'
|
|
implementation 'org.hyperledger.fabric:fabric-protos:0.2.0'
|
|
compileOnly 'io.grpc:grpc-api:1.54.1'
|
|
runtimeOnly 'io.grpc:grpc-netty-shaded:1.54.1'
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(11)
|
|
}
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion '10.3'
|
|
}
|
|
|
|
application {
|
|
mainClass = 'App'
|
|
}
|