Additional bazel build files for apps

Change-Id: If3f31139022b5657e4a7b8a33871e4eba0da286e
diff --git a/apps/vtn/BUILD b/apps/vtn/BUILD
new file mode 100644
index 0000000..8331afd
--- /dev/null
+++ b/apps/vtn/BUILD
@@ -0,0 +1,14 @@
+BUNDLES = [
+    "//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc",
+    "//apps/vtn/sfcmgr:onos-apps-vtn-sfcmgr",
+    "//apps/vtn/vtnmgr:onos-apps-vtn-vtnmgr",
+    "//apps/vtn/vtnweb:onos-apps-vtn-vtnweb",
+]
+
+onos_app(
+    category = "Integration",
+    description = "ONOS framework applications",
+    included_bundles = BUNDLES,
+    title = "OPNFV",
+    url = "http://onosproject.org",
+)
diff --git a/apps/vtn/sfcmgr/BUILD b/apps/vtn/sfcmgr/BUILD
new file mode 100644
index 0000000..e45ac6e
--- /dev/null
+++ b/apps/vtn/sfcmgr/BUILD
@@ -0,0 +1,9 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + [
+    "//core/store/serializers:onos-core-serializers",
+    "//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc",
+]
+
+osgi_jar_with_tests(
+    test_deps = TEST_ADAPTERS,
+    deps = COMPILE_DEPS,
+)
diff --git a/apps/vtn/vtnmgr/BUILD b/apps/vtn/vtnmgr/BUILD
new file mode 100644
index 0000000..0ae2ab8
--- /dev/null
+++ b/apps/vtn/vtnmgr/BUILD
@@ -0,0 +1,10 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + KRYO + CLI + [
+    "//core/store/serializers:onos-core-serializers",
+    "//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc",
+]
+
+osgi_jar_with_tests(
+    resources = glob(["src/main/resources/**"]),
+    resources_root = "src/main/resources",
+    deps = COMPILE_DEPS,
+)
diff --git a/apps/vtn/vtnrsc/BUILD b/apps/vtn/vtnrsc/BUILD
new file mode 100644
index 0000000..df0a9a9
--- /dev/null
+++ b/apps/vtn/vtnrsc/BUILD
@@ -0,0 +1,12 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + CLI + [
+    "//core/store/serializers:onos-core-serializers",
+]
+
+osgi_jar_with_tests(
+    exclude_tests = [
+        "org/onosproject/vtnrsc/util/VtnEventuallyConsistentMapTest",
+        "org/onosproject/vtnrsc/util/VtnStorageServiceTest",
+    ],
+    test_deps = TEST_REST,
+    deps = COMPILE_DEPS,
+)
diff --git a/apps/vtn/vtnweb/BUILD b/apps/vtn/vtnweb/BUILD
new file mode 100644
index 0000000..0142518
--- /dev/null
+++ b/apps/vtn/vtnweb/BUILD
@@ -0,0 +1,16 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + REST + [
+    "//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc",
+]
+
+TEST_DEPS = TEST_REST + [
+    "@minimal_json//jar",
+    "//utils/osgi:onlab-osgi-tests",
+    "//web/api:onos-rest-tests",
+]
+
+osgi_jar_with_tests(
+    exclude_tests = ["org.onosproject.vtnweb.resources.VtnResourceTest"],
+    test_deps = TEST_DEPS,
+    web_context = "/onos/vtn",
+    deps = COMPILE_DEPS,
+)