Bazel build for STC runs
Change-Id: I75806c0cb5b71402b7e3519a84498f8e05a9cf8a
diff --git a/apps/dhcprelay/BUILD b/apps/dhcprelay/BUILD
new file mode 100644
index 0000000..956419e
--- /dev/null
+++ b/apps/dhcprelay/BUILD
@@ -0,0 +1,30 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + KRYO + CLI + [
+ "//core/store/serializers:onos-core-serializers",
+ "//apps/route-service/api:onos-apps-route-service-api",
+ "//apps/routing/fpm/api:onos-apps-routing-fpm-api",
+]
+
+TEST_DEPS = TEST + [
+ "//apps/route-service/api:onos-apps-route-service-api-tests",
+ "//core/api:onos-api-tests",
+]
+
+BUNDLES = [
+ "//apps/dhcprelay:onos-apps-dhcprelay",
+ "//apps/routing/fpm/api:onos-apps-routing-fpm-api",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.dhcprelay",
+ category = "Utility",
+ description = "DHCP Relay Agent Application.",
+ included_bundles = BUNDLES,
+ required_apps = ["org.onosproject.route-service"],
+ title = "DHCP Relay Agent",
+ url = "http://onosproject.org",
+)
diff --git a/apps/pathpainter/BUILD b/apps/pathpainter/BUILD
new file mode 100644
index 0000000..3da6a0e
--- /dev/null
+++ b/apps/pathpainter/BUILD
@@ -0,0 +1,17 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON
+
+osgi_jar_with_tests(
+ resources = glob(["src/main/resources/**"]),
+ resources_root = "src/main/resources",
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ category = "GUI",
+ description = "Extends the GUI topology view by adding an overlay that allows the operator " +
+ "to visualize topology paths using various forms of path-finding algorithms such as " +
+ "the Dijkstra shortest path using default link metric (ONOS default), using geographic " +
+ "distances, disjoint paths, etc.",
+ title = "Path Visualization",
+ url = "http://onosproject.org",
+)
diff --git a/apps/proxyarp/BUILD b/apps/proxyarp/BUILD
new file mode 100644
index 0000000..907c556
--- /dev/null
+++ b/apps/proxyarp/BUILD
@@ -0,0 +1,14 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "//incubator/api:onos-incubator-api",
+]
+
+osgi_jar(
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ category = "Traffic Engineering",
+ description = "Proxy ARP/NDP application.",
+ title = "Proxy ARP/NDP",
+ url = "http://onosproject.org",
+)
diff --git a/apps/routeradvertisement/BUILD b/apps/routeradvertisement/BUILD
new file mode 100644
index 0000000..abca366
--- /dev/null
+++ b/apps/routeradvertisement/BUILD
@@ -0,0 +1,15 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + CLI + [
+ "//incubator/api:onos-incubator-api",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ category = "Traffic Engineering",
+ description = "Application for generating IPv6 RAs",
+ title = "IPv6 RA Generator",
+ url = "http://onosproject.org",
+)
diff --git a/apps/routing-api/BUILD b/apps/routing-api/BUILD
new file mode 100644
index 0000000..80eba67
--- /dev/null
+++ b/apps/routing-api/BUILD
@@ -0,0 +1,8 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+ "//incubator/api:onos-incubator-api",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/routing/common/BUILD b/apps/routing/common/BUILD
new file mode 100644
index 0000000..0792ed9
--- /dev/null
+++ b/apps/routing/common/BUILD
@@ -0,0 +1,17 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + JACKSON + CLI + [
+ "@netty//jar",
+ "//incubator/api:onos-incubator-api",
+ "//apps/routing-api:onos-apps-routing-api",
+ "//apps/route-service/api:onos-apps-route-service-api",
+ "//core/common:onos-core-common",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "//incubator/api:onos-incubator-api-tests",
+ "//apps/routing-api:onos-apps-routing-api-tests",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/routing/fpm/BUILD b/apps/routing/fpm/BUILD
new file mode 100644
index 0000000..bcf45df
--- /dev/null
+++ b/apps/routing/fpm/BUILD
@@ -0,0 +1,16 @@
+BUNDLES = [
+ "//apps/routing/common:onos-apps-routing-common",
+ "//apps/routing-api:onos-apps-routing-api",
+ "//apps/routing/fpm/api:onos-apps-routing-fpm-api",
+ "//apps/routing/fpm/app:onos-apps-routing-fpm-app",
+]
+
+onos_app(
+ app_name = "org.onosproject.fpm",
+ category = "Utility",
+ description = "Receives/Transmits routes from external routing daemon over FPM protocol",
+ included_bundles = BUNDLES,
+ required_apps = ["org.onosproject.route-service"],
+ title = "FIB Push Manager (FPM) Route Receiver",
+ url = "http://onosproject.org",
+)
diff --git a/apps/routing/fpm/api/BUILD b/apps/routing/fpm/api/BUILD
new file mode 100644
index 0000000..01d59ae
--- /dev/null
+++ b/apps/routing/fpm/api/BUILD
@@ -0,0 +1,3 @@
+osgi_jar(
+ deps = CORE_DEPS,
+)
diff --git a/apps/routing/fpm/app/BUILD b/apps/routing/fpm/app/BUILD
new file mode 100644
index 0000000..7dc29f6
--- /dev/null
+++ b/apps/routing/fpm/app/BUILD
@@ -0,0 +1,13 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + KRYO + CLI + [
+ "@netty//jar",
+ "//incubator/api:onos-incubator-api",
+ "//apps/routing-api:onos-apps-routing-api",
+ "//apps/route-service/api:onos-apps-route-service-api",
+ "//core/store/serializers:onos-core-serializers",
+ "//apps/routing/fpm/api:onos-apps-routing-fpm-api",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/test/distributed-primitives/BUILD b/apps/test/distributed-primitives/BUILD
new file mode 100644
index 0000000..09ab1c4
--- /dev/null
+++ b/apps/test/distributed-primitives/BUILD
@@ -0,0 +1,17 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + CLI + [
+ "@javax_ws_rs_api//jar",
+ "//utils/rest:onlab-rest",
+ "//core/store/serializers:onos-core-serializers",
+]
+
+osgi_jar(
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.distributedprimitives",
+ category = "Test Utility",
+ description = "ONOS app to test distributed primitives.",
+ title = "Distributed Primitives Test",
+ url = "http://onosproject.org",
+)