Build drivers with bazel
Change-Id: I033ac32b3ef8119fc65e046c821ff17f12709261
diff --git a/drivers/server/BUILD b/drivers/server/BUILD
new file mode 100644
index 0000000..c2ab312
--- /dev/null
+++ b/drivers/server/BUILD
@@ -0,0 +1,32 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+ "@javax_ws_rs_api//jar",
+ "//incubator/api:onos-incubator-api",
+ "//utils/rest:onlab-rest",
+ "//protocols/rest/api:onos-protocols-rest-api",
+]
+
+BUNDLES = [
+ ":onos-drivers-server",
+]
+
+REQUIRED_APPS = [
+ "org.onosproject.restsb",
+]
+
+osgi_jar_with_tests(
+ resources = glob(["src/main/resources/**"]),
+ resources_root = "src/main/resources",
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.drivers.server",
+ category = "Drivers",
+ description = "ONOS southbound drivers for commodity servers",
+ included_bundles = BUNDLES,
+ origin = "KTH Royal Institute of Technology & RISE SICS",
+ required_apps = REQUIRED_APPS,
+ title = "Server Device Drivers",
+ url = "https://github.com/gkatsikas/onos/tree/metron-driver",
+)