mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
- Update Gradle to 9.1.0. - Update shadow plugin to 9.2.2. - Requires a minimum of Java 17 to run Gradle. - Chaincode and applications still target Java 11. - Use release option instead of Gradle toolchain since the toolchain download can cause issues when building Docker images. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
36 lines
761 B
Groovy
36 lines
761 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.8.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'
|
|
}
|
|
|
|
compileJava {
|
|
options.release = 11
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion '10.3'
|
|
}
|
|
|
|
application {
|
|
mainClass = 'App'
|
|
}
|