Allow building third-party apps based on gRPC
By publishing the repackaged grpc and protobuf artifacts
Change-Id: Ib3af7dba4f64948132aa70be31922de61d6f6ab2
diff --git a/drivers/bmv2/BUILD b/drivers/bmv2/BUILD
index 5cf6f45..9478b50 100644
--- a/drivers/bmv2/BUILD
+++ b/drivers/bmv2/BUILD
@@ -4,8 +4,8 @@
"//pipelines/basic:onos-pipelines-basic",
"//protocols/p4runtime/api:onos-protocols-p4runtime-api",
"//protocols/p4runtime/model:onos-protocols-p4runtime-model",
- "@io_grpc_grpc_java//core",
- "@io_grpc_grpc_java//netty",
+ "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_netty",
"@minimal_json//jar",
# "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
#"//lib:libthrift",
diff --git a/drivers/gnmi/BUILD b/drivers/gnmi/BUILD
index f01a9f3..f2c33d0 100644
--- a/drivers/gnmi/BUILD
+++ b/drivers/gnmi/BUILD
@@ -1,8 +1,8 @@
COMPILE_DEPS = CORE_DEPS + KRYO + [
- "@com_google_protobuf//:protobuf_java",
- "@io_grpc_grpc_java//core",
- "@io_grpc_grpc_java//netty",
- "@io_grpc_grpc_java//stub",
+ "//lib:com_google_protobuf_protobuf_java",
+ "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_netty",
+ "//lib:io_grpc_grpc_stub",
"//core/store/serializers:onos-core-serializers",
"//protocols/gnmi/stub:onos-protocols-gnmi-stub",
"//protocols/gnmi/api:onos-protocols-gnmi-api",
diff --git a/drivers/gnoi/BUILD b/drivers/gnoi/BUILD
index b5355a9..122c961 100644
--- a/drivers/gnoi/BUILD
+++ b/drivers/gnoi/BUILD
@@ -1,8 +1,8 @@
COMPILE_DEPS = CORE_DEPS + KRYO + [
- "@com_google_protobuf//:protobuf_java",
- "@io_grpc_grpc_java//core",
- "@io_grpc_grpc_java//netty",
- "@io_grpc_grpc_java//stub",
+ "//lib:com_google_protobuf_protobuf_java",
+ "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_netty",
+ "//lib:io_grpc_grpc_stub",
"//protocols/gnoi/stub:onos-protocols-gnoi-stub",
"//protocols/gnoi/api:onos-protocols-gnoi-api",
"//protocols/grpc/api:onos-protocols-grpc-api",
diff --git a/drivers/p4runtime/BUILD b/drivers/p4runtime/BUILD
index f97dbd7..23c6e9e 100644
--- a/drivers/p4runtime/BUILD
+++ b/drivers/p4runtime/BUILD
@@ -3,7 +3,7 @@
"//protocols/grpc/api:onos-protocols-grpc-api",
"//protocols/grpc/utils:onos-protocols-grpc-utils",
"//protocols/p4runtime/api:onos-protocols-p4runtime-api",
- "@io_grpc_grpc_java//core",
+ "//lib:io_grpc_grpc_core_context",
]
BUNDLES = [
diff --git a/drivers/stratum/BUILD b/drivers/stratum/BUILD
index a87c97e..91b055c 100644
--- a/drivers/stratum/BUILD
+++ b/drivers/stratum/BUILD
@@ -1,5 +1,5 @@
COMPILE_DEPS = CORE_DEPS + KRYO + JACKSON + [
- "@io_grpc_grpc_java//core",
+ "//lib:io_grpc_grpc_core_context",
"//drivers/p4runtime:onos-drivers-p4runtime",
"//drivers/gnmi:onos-drivers-gnmi",
"//drivers/gnoi:onos-drivers-gnoi",