aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vorburger ⛑️ <vorburger@google.com>2023-05-26 12:42:50 -0700
committerGitHub <noreply@github.com>2023-05-26 12:42:50 -0700
commit6aa72b786de9bd050c46ee91676b151ee7e8e5b7 (patch)
tree813d7f9e556fe557490978e0a7b4207ea56d07f3
parentb77f0a022ffe3179bf4cef7b686fb9285e9687f5 (diff)
downloadgrpc-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.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 252e285ad..9d457631e 100644
--- a/README.md
+++ b/README.md
@@ -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
-------------