Implement bazel support for web context
- add web context to OSGI rules
- build ACL app
- build DHCP app
Change-Id: I03687d109eb44621458ad7269a435e03eec47495
diff --git a/apps/dhcp/app/BUILD b/apps/dhcp/app/BUILD
new file mode 100644
index 0000000..5d1f800
--- /dev/null
+++ b/apps/dhcp/app/BUILD
@@ -0,0 +1,18 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + KRYO + [
+ "@javax_ws_rs_api//jar",
+ "@org_apache_karaf_shell_console//jar",
+ "//apps/dhcp/api:onos-apps-dhcp-api",
+ "//utils/rest:onlab-rest",
+ "//core/store/serializers:onos-core-serializers",
+ "//cli:onos-cli",
+]
+
+osgi_jar_with_tests(
+ api_description = "REST API for DHCP Server",
+ api_package = "org.onosproject.dhcp.rest",
+ api_title = "DHCP Server",
+ api_version = "1.0",
+ test_deps = TEST_ADAPTERS,
+ web_context = "/onos/dhcp",
+ deps = COMPILE_DEPS,
+)