Skip to content

Commit 58de563

Browse files
authored
examples: support retry policy example for bazel build
According to the docs, I can use bazel to build examples, but retry-example is not supported in bazel config. So If you'll try to build this example with bazel, you'll get an error: ``` examples git:(master) ✗ bazel build :retrying-hello-world-server :retrying-hello-world-client ERROR: Skipping ':retrying-hello-world-client': no such target '//:retrying-hello-world-client': target 'retrying-hello-world-client' not declared in package '' defined by /Users/rostik404/projects/grpc-java/examples/BUILD.bazel ERROR: no such target '//:retrying-hello-world-client': target 'retrying-hello-world-client' not declared in package '' defined by /Users/rostik404/projects/grpc-java/examples/BUILD.bazel INFO: Elapsed time: 0.331s INFO: 0 processes. ERROR: Build did NOT complete successfully ```
1 parent 8050723 commit 58de563

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

examples/BUILD.bazel

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,20 @@ java_grpc_library(
248248
deps = ["@io_grpc_grpc_proto//:health_java_proto"],
249249
)
250250

251+
java_binary(
252+
name = "retrying-hello-world-client",
253+
testonly = 1,
254+
main_class = "io.grpc.examples.retrying.RetryingHelloWorldClient",
255+
runtime_deps = [
256+
":examples",
257+
],
258+
)
259+
260+
java_binary(
261+
name = "retrying-hello-world-server",
262+
testonly = 1,
263+
main_class = "io.grpc.examples.retrying.RetryingHelloWorldServer",
264+
runtime_deps = [
265+
":examples",
266+
],
267+
)

0 commit comments

Comments
 (0)