java_grpc_library: re-add grpc-java repo to targets
They were removed in 137c74d1 since it was believed they were unnecessary.
However, since they are in a macro and not a rule, they are relative to the
caller, not their definition.
Added building the examples to the kokoro CI. Note that this means the examples
are built twice: once in grpc-java's build and once in their own (because it
has a WORKSPACE). Given that the Bazel build is our fastest build, this
slowdown won't probably be an issue.
diff --git a/java_grpc_library.bzl b/java_grpc_library.bzl
index 504831a..2a8abb1 100644
--- a/java_grpc_library.bzl
+++ b/java_grpc_library.bzl
@@ -107,9 +107,9 @@
)
added_deps = [
- "//core",
- "//stub",
- "//protobuf",
+ "@io_grpc_grpc_java//core",
+ "@io_grpc_grpc_java//stub",
+ "@io_grpc_grpc_java//protobuf",
"@com_google_guava_guava//jar",
]
if flavor == "normal":