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/protocols/grpc/ctl/BUILD b/protocols/grpc/ctl/BUILD
index 2d199ef..a4c063f 100644
--- a/protocols/grpc/ctl/BUILD
+++ b/protocols/grpc/ctl/BUILD
@@ -1,8 +1,9 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "//protocols/grpc/api:onos-protocols-grpc-api",
+ "//protocols/grpc/proto:onos-protocols-grpc-proto",
+ "@io_grpc_grpc_java//core",
+]
+
osgi_jar (
- deps = CORE_DEPS + [
- "//protocols/grpc/api:onos-protocols-grpc-api",
- "//protocols/grpc/proto:dummy_java_grpc",
- "//protocols/grpc/proto:dummy_java_proto",
- "@io_grpc_grpc_java//core"
- ],
+ deps = COMPILE_DEPS,
)