Initial builds using bazel
Change-Id: I38123b396a2ffda5f36cdca43f3ad1fa67a7ab52
diff --git a/utils/junit/BUILD b/utils/junit/BUILD
new file mode 100644
index 0000000..13a2068
--- /dev/null
+++ b/utils/junit/BUILD
@@ -0,0 +1,25 @@
+SRC = 'src/main/java/org/onlab/**/'
+TEST_SRC = 'src/test/java/org/onlab/**/'
+
+COMPILE_DEPS = [
+ "@guava//jar",
+ "@slf4j_api//jar",
+ "@hamcrest_all//jar",
+ "@junit//jar",
+]
+
+TEST_DEPS = [
+ "@guava_testlib//jar",
+]
+
+osgi_jar_with_tests(
+ name = 'onlab-junit',
+ srcs = glob([SRC + '*.java']),
+ deps = COMPILE_DEPS,
+ test_srcs = glob([TEST_SRC + '*.java']),
+ test_deps = TEST_DEPS,
+ package_name_root = 'org.onlab',
+ visibility = ["//visibility:public"],
+)
+
+