Support to build openstack related apps using Bazel
Change-Id: Ibc9f43a8fd92bb41b162a88a1eb3e8c8c5ad990a
diff --git a/apps/openstacknetworkingui/BUILD b/apps/openstacknetworkingui/BUILD
new file mode 100644
index 0000000..faf4563
--- /dev/null
+++ b/apps/openstacknetworkingui/BUILD
@@ -0,0 +1,35 @@
+EXCLUDE_PACKAGES = "!org.apache.sshd.client,!org.apache.sshd.client.*,!org.apache.sshd.common.util.io"
+
+COMPILE_DEPS = CORE_DEPS + JACKSON + CLI + REST + [
+ "//core/store/serializers:onos-core-serializers",
+ "//apps/openstacknode/api:onos-apps-openstacknode-api",
+ "//apps/openstacknetworking/api:onos-apps-openstacknetworking-api",
+ "@sshd_core//jar",
+]
+
+EXCLUDED_BUNDLES = [
+ "@sshd_core//jar",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "//core/api:onos-api-tests",
+ "//core/common:onos-core-common-tests",
+]
+
+osgi_jar_with_tests(
+ import_packages = EXCLUDE_PACKAGES,
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.openstacknetworkingui",
+ category = "GUI",
+ description = "Openstack Networking UI Service",
+ excluded_bundles = EXCLUDED_BUNDLES,
+ required_apps = [
+ "org.onosproject.openstacknetworking",
+ ],
+ title = "Openstack Networking UI",
+ url = "http://onosproject.org",
+)