Additional bazel build files for apps

Change-Id: If3f31139022b5657e4a7b8a33871e4eba0da286e
diff --git a/apps/castor/BUILD b/apps/castor/BUILD
new file mode 100644
index 0000000..fc4b373
--- /dev/null
+++ b/apps/castor/BUILD
@@ -0,0 +1,36 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + KRYO + REST + [
+    "//core/store/serializers:onos-core-serializers",
+    "//incubator/api:onos-incubator-api",
+    "//apps/routing-api:onos-apps-routing-api",
+    "//apps/intentsync:onos-apps-intentsync",
+]
+
+BUNDLES = [
+    "//apps/castor:onos-apps-castor",
+    "//apps/routing-api:onos-apps-routing-api",
+    "//apps/routing/common:onos-apps-routing-common",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+    "//incubator/api:onos-incubator-api-tests",
+    "//apps/routing-api:onos-apps-routing-api-tests",
+]
+
+osgi_jar_with_tests(
+    api_description = "REST API for Castor",
+    api_package = "org.onosproject.castor",
+    api_title = "Castor",
+    api_version = "1.0",
+    test_deps = TEST_DEPS,
+    web_context = "/onos/castor",
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    category = "Utility",
+    description = "Castor application",
+    included_bundles = BUNDLES,
+    required_apps = ["org.onosproject.intentsynchronizer"],
+    title = "Castor",
+    url = "http://onosproject.org",
+)