Additional bazel build files for apps

Change-Id: If3f31139022b5657e4a7b8a33871e4eba0da286e
diff --git a/apps/cpman/app/BUILD b/apps/cpman/app/BUILD
new file mode 100644
index 0000000..9011ba4
--- /dev/null
+++ b/apps/cpman/app/BUILD
@@ -0,0 +1,39 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + METRICS + KRYO + CLI + REST + [
+    "@rrd4j//jar",
+    "//core/store/serializers:onos-core-serializers",
+    "//apps/cpman/api:onos-apps-cpman-api",
+]
+
+TEST_DEPS = TEST_REST + [
+    "//web/api:onos-rest-tests",
+]
+
+BUNDLES = [
+    "//apps/cpman/api:onos-apps-cpman-api",
+    ":onos-apps-cpman-app",
+]
+
+EXCLUDED_BUNDLES = [
+    "@rrd4j//jar",
+]
+
+osgi_jar_with_tests(
+    api_description = "REST API for Control Plane Manager",
+    api_package = "org.onosproject.cpman.rest",
+    api_title = "Control Plane Manager API",
+    api_version = "1.0",
+    test_deps = TEST_DEPS,
+    web_context = "/onos/cpman",
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    app_name = "org.onosproject.cpman",
+    category = "Monitoring",
+    description = "Control Plane Management application for monitoring the health of the ONOS cluster",
+    excluded_bundles = EXCLUDED_BUNDLES,
+    included_bundles = BUNDLES,
+    required_apps = ["org.onosproject.openflow-message"],
+    title = "Control Plane Manager",
+    url = "http://onosproject.org",
+)