[WIP] Attempt at building grpc and p4runtime protocols with Bazel

STILL NOT WORKING AT RUNTIME

Change-Id: I1f9e60b12a12e09edad2a714ec2921a4f71c6d35
diff --git a/core/api/BUCK b/core/api/BUCK
index ea9642d..d4cdf8a 100644
--- a/core/api/BUCK
+++ b/core/api/BUCK
@@ -8,7 +8,7 @@
     '//utils/osgi:onlab-osgi',
     '//utils/rest:onlab-rest',
     '//lib:joda-time',
-    '//lib:netty',
+    '//lib:io_netty_netty',
 ]
 
 osgi_jar_with_tests (
diff --git a/core/api/BUILD b/core/api/BUILD
index 48ba6ae..6f19099 100644
--- a/core/api/BUILD
+++ b/core/api/BUILD
@@ -3,7 +3,7 @@
     "//utils/osgi:onlab-osgi",
     "//utils/rest:onlab-rest",
     "@joda_time//jar",
-    "@netty//jar",
+    "@io_netty_netty//jar",
 ]
 
 osgi_jar_with_tests(
diff --git a/core/store/dist/BUCK b/core/store/dist/BUCK
index b6be5ec..608bfc9 100644
--- a/core/store/dist/BUCK
+++ b/core/store/dist/BUCK
@@ -1,17 +1,18 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
-    '//lib:NETTY',
     '//lib:JACKSON',
     '//lib:KRYO',
     '//core/common:onos-core-common',
     '//utils/rest:onlab-rest',
     '//core/store/serializers:onos-core-serializers',
-    '//lib:netty-transport',
-    '//lib:netty-codec',
-    '//lib:netty-buffer',
-    '//lib:netty-handler',
-    '//lib:netty-transport-native-epoll',
-    '//lib:netty-resolver',
+    '//lib:io_netty_netty_buffer',
+    '//lib:io_netty_netty_common',
+    '//lib:io_netty_netty_codec',
+    '//lib:io_netty_netty_handler',
+    '//lib:io_netty_netty_resolver',
+    '//lib:io_netty_netty_transport',
+    '//lib:io_netty_netty_transport_native_unix_common',
+    '//lib:io_netty_netty_transport-native-epoll',
     '//lib:commons-math3',
     '//incubator/api:onos-incubator-api',
 ]
diff --git a/core/store/dist/BUILD b/core/store/dist/BUILD
index c48acda..98eefbb 100644
--- a/core/store/dist/BUILD
+++ b/core/store/dist/BUILD
@@ -2,11 +2,12 @@
     "//core/common:onos-core-common",
     "//utils/rest:onlab-rest",
     "//core/store/serializers:onos-core-serializers",
-    "@netty_transport//jar",
-    "@netty_codec//jar",
-    "@netty_handler//jar",
-    "@netty_transport_native_epoll//jar",
-    "@netty_resolver//jar",
+    "@io_netty_netty_transport//jar",
+    "@io_netty_netty_codec//jar",
+    "@io_netty_netty_handler//jar",
+    "@io_netty_netty_transport_native_epoll//jar",
+    "@io_netty_netty_transport_native_unix_common//jar",
+    "@io_netty_netty_resolver//jar",
     "@commons_math3//jar",
     "//incubator/api:onos-incubator-api",
 ]
diff --git a/core/store/primitives/BUCK b/core/store/primitives/BUCK
index 5de553d..ffe4fae 100644
--- a/core/store/primitives/BUCK
+++ b/core/store/primitives/BUCK
@@ -12,10 +12,10 @@
 TEST_DEPS = [
     '//lib:TEST',
     '//core/api:onos-api-tests',
-    '//lib:netty-handler',
-    '//lib:netty-buffer',
-    '//lib:netty-codec',
-    '//lib:netty-resolver',
+    '//lib:io_netty_netty_handler',
+    '//lib:io_netty_netty_buffer',
+    '//lib:io_netty_netty_codec',
+    '//lib:io_netty_netty_resolver',
     '//lib:commons-math3',
 ]
 
diff --git a/core/store/primitives/BUILD b/core/store/primitives/BUILD
index 0a925d1..45f0b4e 100644
--- a/core/store/primitives/BUILD
+++ b/core/store/primitives/BUILD
@@ -6,10 +6,10 @@
 
 TEST_DEPS = TEST + [
     "@commons_math3//jar",
-    "@netty_handler//jar",
-    "@netty_buffer//jar",
-    "@netty_codec//jar",
-    "@netty_resolver//jar",
+    "@io_netty_netty_handler//jar",
+    "@io_netty_netty_buffer//jar",
+    "@io_netty_netty_codec//jar",
+    "@io_netty_netty_resolver//jar",
     "//core/api:onos-api-tests",
 ]