Go to file
2024-03-15 20:23:13 +08:00
.vscode setup: update project setup and build 2022-11-14 15:25:58 +08:00
api@b74f3fe89c feat: update to latest API 2022-11-14 15:40:02 +08:00
gradle/wrapper setup: update project setup and build 2022-11-14 15:25:58 +08:00
src feat: update to latest API 2022-11-14 15:40:02 +08:00
.gitignore Fix .gitignore 2018-11-27 19:49:39 +08:00
.gitmodules setup: update project setup and build 2022-11-14 15:25:58 +08:00
.ignore chore: add .ignore for scc 2024-03-15 20:23:13 +08:00
build.gradle setup: add Java targetCompatibility fixed to 1.8 2022-11-14 18:14:06 +08:00
gradlew setup: update project setup and build 2022-11-14 15:25:58 +08:00
gradlew.bat setup: update project setup and build 2022-11-14 15:25:58 +08:00
README.md feat: update to latest API 2022-11-14 15:40:02 +08:00
settings.gradle setup: update project setup and build 2022-11-14 15:25:58 +08:00

Usage

Import bdledger-java-sdk-{{VERSION}}.jar along with SDK's dependencies described below.

See Javadoc and src/test/java/org/bdware/bdledger/api/grpc/ClientTests.java for usage example.

SDK's dependencies

Direct dependencies

  • io.grpc:grpc-netty-shaded
  • io.grpc:grpc-protobuf
  • io.grpc:grpc-stub

grpc_java_version = '1.27.0'

with Gradle

compile 'io.grpc:grpc-netty-shaded:' + grpc_java_version
compile 'io.grpc:grpc-protobuf:' + grpc_java_version
compile 'io.grpc:grpc-stub:' + grpc_java_version

with Maven

<dependency>
    <groupId>io.grpc</groupId>
    <artifactId>grpc-netty-shaded</artifactId>
    <version>${grpc_java_version}</version>
</dependency>
<dependency>
    <groupId>io.grpc</groupId>
    <artifactId>grpc-protobuf</artifactId>
    <version>${grpc_java_version}</version>
</dependency>
<dependency>
    <groupId>io.grpc</groupId>
    <artifactId>grpc-stub</artifactId>
    <version>${grpc_java_version}</version>
</dependency>

All dependencies

+--- io.grpc:grpc-netty-shaded:1.27.0
|    \--- io.grpc:grpc-core:[1.27.0] -> 1.27.0
|         +--- io.grpc:grpc-api:[1.27.0] -> 1.27.0
|         |    +--- io.grpc:grpc-context:1.27.0
|         |    +--- com.google.errorprone:error_prone_annotations:2.3.4
|         |    +--- com.google.code.findbugs:jsr305:3.0.2
|         |    +--- org.codehaus.mojo:animal-sniffer-annotations:1.18
|         |    \--- com.google.guava:guava:28.1-android
|         |         +--- com.google.guava:failureaccess:1.0.1
|         |         +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
|         |         +--- org.checkerframework:checker-compat-qual:2.5.5
|         |         \--- com.google.j2objc:j2objc-annotations:1.3
|         +--- com.google.code.gson:gson:2.8.6
|         +--- com.google.android:annotations:4.1.1.4
|         +--- com.google.errorprone:error_prone_annotations:2.3.4
|         \--- io.perfmark:perfmark-api:0.19.0
|              \--- com.google.code.findbugs:jsr305:3.0.2
+--- io.grpc:grpc-protobuf:1.27.0
|    +--- io.grpc:grpc-api:1.27.0 (*)
|    +--- com.google.protobuf:protobuf-java:3.11.0
|    +--- com.google.guava:guava:28.1-android (*)
|    +--- com.google.api.grpc:proto-google-common-protos:1.17.0
|    \--- io.grpc:grpc-protobuf-lite:1.27.0
|         +--- io.grpc:grpc-api:1.27.0 (*)
|         \--- com.google.guava:guava:28.1-android (*)
+--- io.grpc:grpc-stub:1.27.0
|    \--- io.grpc:grpc-api:1.27.0 (*)
\--- javax.annotation:javax.annotation-api:1.3.2

Testing

  1. Download mock client
  2. Run mock client with --port={{port}}
  3. Run gradle test

Distributing

./gradlew jar
./gradlew shadowJar
./gradlew javadoc
./gradlew installDist
./gradlew distZip

TODO

Would you like to use a free managed security reporting service (recommended)? Put https://hackerone.com/central-security-project/reports/new as your project's security issue reporting URL. We'll take care of the rest. For more details on the Central Security Project, visit https://www.sonatype.com/central-security-project