mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 23:45:10 +00:00
JCenter is deprecated, can no longer be published to, and is scheduled for removal. It is now causing build failures. Replace with Maven Central. Also remove mavenLocal() as this is not recommended practice: - https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:case-for-maven-local Note that Jitpack still needs to be included as a package repository for Java chaincode since it has dependencies on an old version of com.github.everit-org.json-schema:org.everit.json.schema that is only published there. Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
42 lines
No EOL
1.2 KiB
Groovy
42 lines
No EOL
1.2 KiB
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 java plugin to add support for Java
|
|
id 'java'
|
|
|
|
// Apply the application plugin to add support for building a CLI application.
|
|
id 'application'
|
|
}
|
|
ext {
|
|
javaMainClass = "application.java.App"
|
|
}
|
|
|
|
repositories {
|
|
// You can declare any Maven/Ivy/file repository here.
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// This dependency is used by the application.
|
|
implementation 'com.google.guava:guava:29.0-jre'
|
|
implementation 'org.hyperledger.fabric:fabric-gateway-java:2.1.1'
|
|
}
|
|
|
|
application {
|
|
// Define the main class for the application.
|
|
mainClassName = 'application.java.App'
|
|
}
|
|
|
|
// task for running the app after building dependencies
|
|
task runApp(type: Exec) {
|
|
dependsOn build
|
|
group = "Execution"
|
|
description = "Run the main class with ExecTask"
|
|
commandLine "java", "-classpath", sourceSets.main.runtimeClasspath.getAsPath(), javaMainClass
|
|
} |