Bazel build for the combined GRPC runtime jar file
Change-Id: I76ff5f1b81a0985cb45c70c8f63640668207cd4e
diff --git a/protocols/p4runtime/proto/BUILD b/protocols/p4runtime/proto/BUILD
index fe82bb3..11eed2f 100644
--- a/protocols/p4runtime/proto/BUILD
+++ b/protocols/p4runtime/proto/BUILD
@@ -1,7 +1,7 @@
load("//tools/build/bazel:osgi_java_library.bzl", "wrapped_osgi_jar")
java_proto_library(
- name = "p4_runtime_java_proto",
+ name = "p4_runtime_java_proto_proto",
visibility = ["//visibility:public"],
deps = ["@p4lang_pi//:p4_runtime_proto"],
)
@@ -13,12 +13,21 @@
deps = CORE_DEPS + ["@protobuf_java_3_2_0//jar"],
)
+
wrapped_osgi_jar(
- name = "p4_runtime_java_proto-osgi",
- jar = ":p4_runtime_java_proto",
+ name = "grpc-core-repkg-1.3.1",
+ jar = "@grpc_src_zip_131//:grpc-core-repkg-1.3.1-native",
+ visibility = ["//visibility:public"],
+ deps = COMPILE,
+)
+
+wrapped_osgi_jar(
+ name = "p4_runtime_java_proto",
+ jar = ":p4_runtime_java_proto_proto",
visibility = ["//visibility:public"],
deps = CORE_DEPS + [
"@protobuf_java_3_2_0//jar",
"@google_rpc//:rpc_java_proto",
+ ":grpc-core-repkg-1.3.1",
],
)