mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +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>
37 lines
987 B
Groovy
37 lines
987 B
Groovy
/*
|
|
* This file was generated by the Gradle 'init' task.
|
|
*
|
|
* This generated file contains a sample Java project to get you started.
|
|
* For more details take a look at the Java Quickstart chapter in the Gradle
|
|
* User Manual available at https://docs.gradle.org/6.5/userguide/tutorial_java_projects.html
|
|
*/
|
|
plugins {
|
|
// Apply the application plugin to add support for building a CLI application.
|
|
id 'application'
|
|
}
|
|
|
|
ext {
|
|
javaMainClass = "application.java.App"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.hyperledger.fabric:fabric-gateway:1.8.0'
|
|
implementation platform('com.google.protobuf:protobuf-bom:4.28.2')
|
|
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
|
|
}
|
|
|
|
application {
|
|
// Define the main class for the application.
|
|
mainClass = 'App'
|
|
}
|