Fix p4runtime runtime dependencies when building with Bazel
A convenient macro for packaging together all proto and gRPC libraries
in an OSGi jar is provided. Also re-packaging of gRPC core (to avoid OSGi
split problem) is simplified by depending on a patched fork of grpc-java.
Change-Id: Idb79a5bea8ae0bc57b146bda1fc47a4568d12c60
diff --git a/tools/build/bazel/googleapis_BUILD b/tools/build/bazel/googleapis_BUILD
index 97aea21..98e9e90 100644
--- a/tools/build/bazel/googleapis_BUILD
+++ b/tools/build/bazel/googleapis_BUILD
@@ -1,12 +1,6 @@
-package(default_visibility = [ "//visibility:public" ])
-
proto_library(
name = "status_proto",
srcs = ["google/rpc/status.proto"],
- deps = ["@com_google_protobuf//:any_proto"]
-)
-
-java_proto_library(
- name = "status_java_proto_native",
- deps = [":status_proto"],
+ deps = ["@com_google_protobuf//:any_proto"],
+ visibility = [ "//visibility:public" ],
)