Bazel builds for additional drivers
Change-Id: I8c3f36bd7c56127480ab9419ad52dac626b9f3cb
diff --git a/drivers/odtn-driver/BUILD b/drivers/odtn-driver/BUILD
new file mode 100644
index 0000000..7f13b94
--- /dev/null
+++ b/drivers/odtn-driver/BUILD
@@ -0,0 +1,38 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "@commons_jxpath//jar",
+ "//drivers/utilities:onos-drivers-utilities",
+ "//protocols/netconf/api:onos-protocols-netconf-api",
+ "//apps/odtn/api:onos-apps-odtn-api",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "@slf4j_jdk14//jar",
+ "//core/api:onos-api-tests",
+]
+
+BUNDLES = [
+ ":onos-drivers-odtn-driver",
+ # '//lib:commons-jxpath',
+ # '//lib:commons-beanutils', # jxpath dependency
+ # '//lib:jdom', # jxpath dependency
+]
+
+osgi_jar_with_tests(
+ resources = glob(["src/main/resources/**"]),
+ resources_root = "src/main/resources",
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.drivers.odtn-driver",
+ category = "Drivers",
+ description = "Drivers related to ODTN",
+ included_bundles = BUNDLES,
+ required_apps = [
+ "org.onosproject.netconf",
+ "org.onosproject.odtn-api",
+ ],
+ title = "ODTN Driver",
+ url = "https://wiki.onosproject.org/display/ODTN/ODTN",
+)