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/WORKSPACE b/WORKSPACE
index 8979e4d..38c41b5 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -11,13 +11,13 @@
load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
grpc_java_repositories(
- omit_com_google_api_grpc_google_common_protos = False,
- omit_com_google_errorprone_error_prone_annotations = False,
omit_javax_annotation = False,
- omit_com_google_auth_google_auth_library_credentials = False,
- omit_io_opencensus_api = False,
- omit_io_opencensus_grpc_metrics = False,
+ omit_com_google_api_grpc_google_common_protos = True,
+ omit_com_google_errorprone_error_prone_annotations = True,
+ omit_com_google_auth_google_auth_library_credentials = True,
+ omit_io_opencensus_api = True,
+ omit_io_opencensus_grpc_metrics = True,
omit_com_google_code_findbugs_jsr305 = True,
omit_com_google_code_gson = True,
omit_com_google_guava = True,
@@ -43,9 +43,6 @@
omit_org_apache_commons_lang3 = True
)
-load("//tools/build/bazel:googleapis_workspace.bzl", "generate_googleapis")
-generate_googleapis()
-
load("//tools/build/bazel:p4lang_workspace.bzl", "generate_p4lang")
generate_p4lang()