Build providers using bazel

Change-Id: I7d4ebcfb1d593e10aa93f0a4f7111680ed66a7e7
diff --git a/providers/bgp/BUILD b/providers/bgp/BUILD
new file mode 100644
index 0000000..b996b79
--- /dev/null
+++ b/providers/bgp/BUILD
@@ -0,0 +1,18 @@
+BUNDLES = [
+    "//providers/bgp/cfg:onos-providers-bgp-cfg",
+    "//providers/bgp/topology:onos-providers-bgp-topology",
+    "//providers/bgp/route:onos-providers-bgp-route",
+    "//providers/bgp/cli:onos-providers-bgp-cli",
+    "//protocols/bgp/api:onos-protocols-bgp-api",
+    "//protocols/bgp/ctl:onos-protocols-bgp-ctl",
+    "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio",
+]
+
+onos_app(
+    category = "Provider",
+    description = "BGP protocol southbound providers.",
+    included_bundles = BUNDLES,
+    required_apps = ["org.onosproject.evpn-route-service"],
+    title = "BGP Provider",
+    url = "http://onosproject.org",
+)
diff --git a/providers/bgp/cfg/BUILD b/providers/bgp/cfg/BUILD
new file mode 100644
index 0000000..da88670
--- /dev/null
+++ b/providers/bgp/cfg/BUILD
@@ -0,0 +1,7 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+    "//protocols/bgp/api:onos-protocols-bgp-api",
+]
+
+osgi_jar_with_tests(
+    deps = COMPILE_DEPS,
+)
diff --git a/providers/bgp/cli/BUILD b/providers/bgp/cli/BUILD
new file mode 100644
index 0000000..4ac3704
--- /dev/null
+++ b/providers/bgp/cli/BUILD
@@ -0,0 +1,14 @@
+COMPILE_DEPS = CORE_DEPS + [
+    "@org_apache_karaf_shell_console//jar",
+    "//incubator/api:onos-incubator-api",
+    "//providers/bgp/cfg:onos-providers-bgp-cfg",
+    "//providers/bgp/topology:onos-providers-bgp-topology",
+    "//protocols/bgp/api:onos-protocols-bgp-api",
+    "//protocols/bgp/ctl:onos-protocols-bgp-ctl",
+    "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio",
+    "//cli:onos-cli",
+]
+
+osgi_jar_with_tests(
+    deps = COMPILE_DEPS,
+)
diff --git a/providers/bgp/route/BUILD b/providers/bgp/route/BUILD
new file mode 100644
index 0000000..2966dd3
--- /dev/null
+++ b/providers/bgp/route/BUILD
@@ -0,0 +1,12 @@
+COMPILE_DEPS = CORE_DEPS + [
+    "//protocols/bgp/api:onos-protocols-bgp-api",
+    "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio",
+    "//incubator/store:onos-incubator-store",
+    "//incubator/api:onos-incubator-api",
+    "//apps/evpn-route-service/api:onos-apps-evpn-route-service-api",
+]
+
+osgi_jar_with_tests(
+    test_deps = TEST_ADAPTERS,
+    deps = COMPILE_DEPS,
+)
diff --git a/providers/bgp/topology/BUILD b/providers/bgp/topology/BUILD
new file mode 100644
index 0000000..65a90cd
--- /dev/null
+++ b/providers/bgp/topology/BUILD
@@ -0,0 +1,12 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+    "//protocols/bgp/api:onos-protocols-bgp-api",
+    "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio",
+    "//incubator/store:onos-incubator-store",
+    "//incubator/api:onos-incubator-api",
+    "//apps/pcep-api:onos-apps-pcep-api",
+]
+
+osgi_jar_with_tests(
+    test_deps = TEST_ADAPTERS,
+    deps = COMPILE_DEPS,
+)