Refactor buck external dependencies

Change-Id: Ia4b99493407eb7d4e893804cba6b944f758f085e
diff --git a/providers/bgp/cfg/BUCK b/providers/bgp/cfg/BUCK
index 431010a..f3fa14d 100644
--- a/providers/bgp/cfg/BUCK
+++ b/providers/bgp/cfg/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//protocols/bgp/api:onos-protocols-bgp-api',
 ]
 
diff --git a/providers/bgp/topology/BUCK b/providers/bgp/topology/BUCK
index d462cf7..efa8edb 100644
--- a/providers/bgp/topology/BUCK
+++ b/providers/bgp/topology/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//protocols/bgp/api:onos-protocols-bgp-api',
     '//protocols/bgp/bgpio:onos-protocols-bgp-bgpio',
     '//incubator/store:onos-incubator-store',
diff --git a/providers/general/device/BUCK b/providers/general/device/BUCK
index 770f6ca..4c7bd78 100644
--- a/providers/general/device/BUCK
+++ b/providers/general/device/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
 ]
 
 TEST_DEPS = [
diff --git a/providers/isis/cfg/BUCK b/providers/isis/cfg/BUCK
index 6ff859a..494b810 100644
--- a/providers/isis/cfg/BUCK
+++ b/providers/isis/cfg/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//protocols/isis/api:onos-protocols-isis-api',
 ]
 
diff --git a/providers/isis/topology/BUCK b/providers/isis/topology/BUCK
index de4e04f..883ced2 100644
--- a/providers/isis/topology/BUCK
+++ b/providers/isis/topology/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//protocols/isis/api:onos-protocols-isis-api',
     '//protocols/isis/ctl:onos-protocols-isis-ctl',
 ]
diff --git a/providers/lldp/BUCK b/providers/lldp/BUCK
index 7e897a6..dfbc97e 100644
--- a/providers/lldp/BUCK
+++ b/providers/lldp/BUCK
@@ -1,5 +1,7 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
+    '//lib:JACKSON',
     '//providers/lldpcommon:onos-providers-lldpcommon',
     '//lib:org.apache.karaf.shell.console',
     '//cli:onos-cli',
diff --git a/providers/lldpcommon/BUCK b/providers/lldpcommon/BUCK
index 0e34257..19fa4e7 100644
--- a/providers/lldpcommon/BUCK
+++ b/providers/lldpcommon/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
 ]
 
 TEST_DEPS = [
diff --git a/providers/netcfglinks/BUCK b/providers/netcfglinks/BUCK
index ddbe30f..fe1dc0b 100644
--- a/providers/netcfglinks/BUCK
+++ b/providers/netcfglinks/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
     '//providers/lldpcommon:onos-providers-lldpcommon',
 ]
 
diff --git a/providers/netconf/alarm/BUCK b/providers/netconf/alarm/BUCK
index 761f2ed..292fe14 100644
--- a/providers/netconf/alarm/BUCK
+++ b/providers/netconf/alarm/BUCK
@@ -3,6 +3,7 @@
     '//incubator/api:onos-incubator-api',
     '//protocols/netconf/api:onos-protocols-netconf-api',
     '//protocols/netconf/ctl:onos-protocols-netconf-ctl',
+    '//lib:joda-time',
 ]
 
 osgi_jar_with_tests (
diff --git a/providers/netconf/device/BUCK b/providers/netconf/device/BUCK
index 2e462ff..89ee36b 100644
--- a/providers/netconf/device/BUCK
+++ b/providers/netconf/device/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//incubator/api:onos-incubator-api',
     '//protocols/netconf/api:onos-protocols-netconf-api',
 ]
diff --git a/providers/null/BUCK b/providers/null/BUCK
index dcb01a2..440c4a8 100644
--- a/providers/null/BUCK
+++ b/providers/null/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
     '//lib:org.apache.karaf.shell.console',
     '//cli:onos-cli',
 ]
diff --git a/providers/openflow/flow/BUCK b/providers/openflow/flow/BUCK
index cacd1b1..77af1be 100644
--- a/providers/openflow/flow/BUCK
+++ b/providers/openflow/flow/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
     '//lib:openflowj',
     '//protocols/openflow/api:onos-protocols-openflow-api',
 ]
diff --git a/providers/openflow/group/BUCK b/providers/openflow/group/BUCK
index c6a6f6d..6c3a325 100644
--- a/providers/openflow/group/BUCK
+++ b/providers/openflow/group/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
     '//lib:openflowj',
     '//protocols/openflow/api:onos-protocols-openflow-api',
     '//providers/openflow/flow:onos-providers-openflow-flow',
diff --git a/providers/openflow/message/BUCK b/providers/openflow/message/BUCK
index 77ec836..9abaabd 100644
--- a/providers/openflow/message/BUCK
+++ b/providers/openflow/message/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:METRICS',
     '//lib:openflowj',
     '//protocols/openflow/api:onos-protocols-openflow-api',
     '//apps/cpman/api:onos-apps-cpman-api',
diff --git a/providers/openflow/meter/BUCK b/providers/openflow/meter/BUCK
index a2e289d..0e94809 100644
--- a/providers/openflow/meter/BUCK
+++ b/providers/openflow/meter/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
     '//lib:openflowj',
     '//protocols/openflow/api:onos-protocols-openflow-api',
 ]
diff --git a/providers/ospf/topology/BUCK b/providers/ospf/topology/BUCK
index 4197711..bb95985 100644
--- a/providers/ospf/topology/BUCK
+++ b/providers/ospf/topology/BUCK
@@ -6,6 +6,7 @@
 
 TEST_DEPS = [
     '//lib:TEST_ADAPTERS',
+    '//lib:JACKSON',
 ]
 
 osgi_jar_with_tests (
diff --git a/providers/pcep/BUCK b/providers/pcep/BUCK
index 3d57719..08eeea4 100644
--- a/providers/pcep/BUCK
+++ b/providers/pcep/BUCK
@@ -6,6 +6,7 @@
     '//protocols/pcep/pcepio:onos-protocols-pcep-pcepio',
     '//protocols/pcep/ctl:onos-protocols-pcep-ctl',
     '//apps/pcep-api:onos-apps-pcep-api',
+    '//lib:netty',
 ]
 
 onos_app (
diff --git a/providers/pcep/topology/BUCK b/providers/pcep/topology/BUCK
index 6d4b0bd..a4442c5 100644
--- a/providers/pcep/topology/BUCK
+++ b/providers/pcep/topology/BUCK
@@ -1,5 +1,7 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
+    '//lib:JACKSON',
     '//incubator/api:onos-incubator-api',
     '//protocols/ovsdb/api:onos-protocols-ovsdb-api',
     '//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc',
@@ -8,6 +10,7 @@
     '//protocols/pcep/pcepio:onos-protocols-pcep-pcepio',
     '//core/api:onos-api-tests',
     '//apps/optical-model:onos-apps-optical-model',
+    '//lib:netty',
 ]
 
 osgi_jar_with_tests (
diff --git a/providers/pcep/tunnel/BUCK b/providers/pcep/tunnel/BUCK
index 465f5fd..8068326 100644
--- a/providers/pcep/tunnel/BUCK
+++ b/providers/pcep/tunnel/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:NETTY',
     '//protocols/ovsdb/api:onos-protocols-ovsdb-api',
     '//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc',
     '//apps/pcep-api:onos-apps-pcep-api',
@@ -7,6 +8,7 @@
     '//protocols/pcep/pcepio:onos-protocols-pcep-pcepio',
     '//protocols/pcep/api:onos-protocols-pcep-api',
     '//protocols/pcep/ctl:onos-protocols-pcep-ctl',
+    '//lib:netty',
 ]
 
 TEST_DEPS = [
diff --git a/providers/rest/device/BUCK b/providers/rest/device/BUCK
index 0538438..d84b307 100644
--- a/providers/rest/device/BUCK
+++ b/providers/rest/device/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//protocols/ovsdb/api:onos-protocols-ovsdb-api',
     '//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc',
     '//apps/pcep-api:onos-apps-pcep-api',
diff --git a/providers/snmp/device/BUCK b/providers/snmp/device/BUCK
index 3fb3823..c9c49de 100644
--- a/providers/snmp/device/BUCK
+++ b/providers/snmp/device/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//lib:org.apache.servicemix.bundles.snmp4j',
     '//lib:snmp-core',
     '//lib:bti7000',
diff --git a/providers/tl1/device/BUCK b/providers/tl1/device/BUCK
index dddcc78..d2f748f 100644
--- a/providers/tl1/device/BUCK
+++ b/providers/tl1/device/BUCK
@@ -1,5 +1,6 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:JACKSON',
     '//incubator/api:onos-incubator-api',
     '//protocols/tl1/api:onos-protocols-tl1-api',
     '//protocols/tl1/ctl:onos-protocols-tl1-ctl',