Build providers using bazel

Change-Id: I7d4ebcfb1d593e10aa93f0a4f7111680ed66a7e7
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",
+)