Build providers using bazel

Change-Id: I7d4ebcfb1d593e10aa93f0a4f7111680ed66a7e7
diff --git a/apps/cpman/api/BUILD b/apps/cpman/api/BUILD
new file mode 100644
index 0000000..a70609c
--- /dev/null
+++ b/apps/cpman/api/BUILD
@@ -0,0 +1,8 @@
+COMPILE_DEPS = CORE_DEPS + [
+    "//core/store/serializers:onos-core-serializers",
+]
+
+osgi_jar_with_tests(
+    test_deps = TEST_ADAPTERS,
+    deps = COMPILE_DEPS,
+)
diff --git a/apps/evpn-route-service/api/BUILD b/apps/evpn-route-service/api/BUILD
new file mode 100644
index 0000000..f72e3bc
--- /dev/null
+++ b/apps/evpn-route-service/api/BUILD
@@ -0,0 +1,3 @@
+osgi_jar_with_tests(
+    deps = CORE_DEPS,
+)
diff --git a/apps/optical-model/BUILD b/apps/optical-model/BUILD
new file mode 100644
index 0000000..ac2a540
--- /dev/null
+++ b/apps/optical-model/BUILD
@@ -0,0 +1,24 @@
+load("//tools/build/bazel:generate_workspace.bzl", "ONOS_VERSION")
+
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+    "@org_apache_karaf_shell_console//jar",
+    "//incubator/api:onos-incubator-api",
+    "//cli:onos-cli",
+]
+
+osgi_jar_with_tests(
+    test_deps = TEST_ADAPTERS,
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    app_name = "org.onosproject.optical-model",
+    category = "Optical",
+    description = "ONOS optical information model.",
+    # Is there a way to change BUCK target name properly?
+    #name = 'onos-optical-model',
+    feature_coords = "org.onosproject:onos-optical-model:%s" % (ONOS_VERSION),
+    required_apps = [],
+    title = "Optical Network Model",
+    url = "https://wiki.onosproject.org/x/C4m",
+)
diff --git a/apps/pce/app/BUILD b/apps/pce/app/BUILD
new file mode 100644
index 0000000..1c3e14b
--- /dev/null
+++ b/apps/pce/app/BUILD
@@ -0,0 +1,23 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + KRYO + [
+    "@org_apache_karaf_shell_console//jar",
+    "@javax_ws_rs_api//jar",
+    "//cli:onos-cli",
+    "//core/store/serializers:onos-core-serializers",
+    "//utils/rest:onlab-rest",
+    "//incubator/api:onos-incubator-api",
+    "//apps/pcep-api:onos-apps-pcep-api",
+    "//apps/pce/bandwidthmgmt:onos-apps-pce-bandwidthmgmt",
+]
+
+osgi_jar_with_tests(
+    test_deps = TEST_REST,
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    app_name = "org.onosproject.pce.app",
+    category = "default",
+    description = "PCE as centeral controller App.",
+    title = "PCE",
+    url = "http://onosproject.org",
+)
diff --git a/apps/pce/bandwidthmgmt/BUILD b/apps/pce/bandwidthmgmt/BUILD
new file mode 100644
index 0000000..755f9b2
--- /dev/null
+++ b/apps/pce/bandwidthmgmt/BUILD
@@ -0,0 +1,16 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + [
+    "//core/store/serializers:onos-core-serializers",
+    "//apps/pcep-api:onos-apps-pcep-api",
+]
+
+osgi_jar_with_tests(
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    app_name = "org.onosproject.bandwidthmgmt",
+    category = "default",
+    description = "PCE Bandwidth Management.",
+    title = "PCE Bandwidth Management",
+    url = "http://onosproject.org",
+)
diff --git a/apps/pce/pceweb/BUILD b/apps/pce/pceweb/BUILD
new file mode 100644
index 0000000..853f9b3
--- /dev/null
+++ b/apps/pce/pceweb/BUILD
@@ -0,0 +1,17 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+    "@org_apache_karaf_shell_console//jar",
+    "//apps/pce/app:onos-apps-pce-app",
+    "//cli:onos-cli",
+    "//incubator/api:onos-incubator-api",
+]
+
+osgi_jar_with_tests(
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    category = "Utility",
+    description = "Allows the user to visualize different types of paths between network entities",
+    title = "PCE REST API",
+    url = "http://onosproject.org",
+)