Skip to content

Creating a simple Java application project

James Taylor edited this page Jul 9, 2019 · 8 revisions

Assumptions:

  • prereqs installed already (Java, Gradle, etc.)

Notes:

Run gradle init --type java-library in a suitable directory, e.g. simple-fabric-client-java

Add the following dependencies to build.gradle

    implementation 'org.hyperledger.fabric-gateway-java:fabric-gateway-java:1.4.0-SNAPSHOT'
    implementation 'org.hyperledger.fabric-sdk-java:fabric-sdk-java:2.0.0-SNAPSHOT'

Add the following repository (only required for snapshots)

    maven {
        url 'https://nexus.hyperledger.org/content/repositories/snapshots/'
    }

Run a build to see if the dependencies can be found.

Weep.

Clone this wiki locally