diff options
author | Michael Vorburger ⛑️ <vorburger@google.com> | 2023-05-26 12:42:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 12:42:50 -0700 |
commit | 6aa72b786de9bd050c46ee91676b151ee7e8e5b7 (patch) | |
tree | 813d7f9e556fe557490978e0a7b4207ea56d07f3 | |
parent | b77f0a022ffe3179bf4cef7b686fb9285e9687f5 (diff) | |
download | grpc-grpc-java-6aa72b786de9bd050c46ee91676b151ee7e8e5b7.tar.gz |
docs: Document use with Bazel, like Maven & Gradle (fixes #10215) (#10217)
* docs: Document use with Bazel, like Maven & Gradle (fixes #10215)
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -94,6 +94,10 @@ implementation 'io.grpc:grpc-stub:1.54.1' compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+ ``` +For [Bazel](https://bazel.build), you can either +[use Maven](https://github.com/bazelbuild/rules_jvm_external) +(with the GAVs from above), or use `@io_grpc_grpc_java//api` et al (see below). + [the JARs]: https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.54.1 @@ -207,6 +211,11 @@ protobuf { ``` +For [Bazel](https://bazel.build), use the [`proto_library`](https://github.com/bazelbuild/rules_proto) +and the [`java_proto_library`](https://bazel.build/reference/be/java#java_proto_library) (no `load()` required) +and `load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")` (from this project), as in +[this example `BUILD.bazel`](https://github.com/grpc/grpc-java/blob/master/examples/BUILD.bazel). + API Stability ------------- |