Build providers using bazel
Change-Id: I7d4ebcfb1d593e10aa93f0a4f7111680ed66a7e7
diff --git a/providers/openflow/message/BUILD b/providers/openflow/message/BUILD
new file mode 100644
index 0000000..1f2dd66
--- /dev/null
+++ b/providers/openflow/message/BUILD
@@ -0,0 +1,26 @@
+COMPILE_DEPS = CORE_DEPS + METRICS + [
+ "@openflowj//jar",
+ "//protocols/openflow/api:onos-protocols-openflow-api",
+ "//apps/cpman/api:onos-apps-cpman-api",
+]
+
+BUNDLES = [
+ "//apps/cpman/api:onos-apps-cpman-api",
+ ":onos-providers-openflow-message",
+]
+
+osgi_jar_with_tests(
+ exclude_tests = [
+ "org.onosproject.provider.of.message.impl.OpenFlowControlMessageProviderTest",
+ ],
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.openflow-message",
+ category = "Provider",
+ description = "ONOS OpenFlow control message provider.",
+ included_bundles = BUNDLES,
+ title = "Control Message Stats Provider",
+ url = "http://onosproject.org",
+)