reformat bazel files to use Google coding standards
Change-Id: I320f0ca7ccb1b2247ccdd9fa58fefca7dad8a16f
diff --git a/utils/junit/BUILD b/utils/junit/BUILD
index 13a2068..2c74051 100644
--- a/utils/junit/BUILD
+++ b/utils/junit/BUILD
@@ -1,11 +1,12 @@
-SRC = 'src/main/java/org/onlab/**/'
-TEST_SRC = 'src/test/java/org/onlab/**/'
+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",
+ "@guava//jar",
+ "@slf4j_api//jar",
+ "@hamcrest_all//jar",
+ "@junit//jar",
]
TEST_DEPS = [
@@ -13,13 +14,11 @@
]
osgi_jar_with_tests(
- name = 'onlab-junit',
- srcs = glob([SRC + '*.java']),
- deps = COMPILE_DEPS,
- test_srcs = glob([TEST_SRC + '*.java']),
+ name = "onlab-junit",
+ srcs = glob([SRC + "*.java"]),
+ package_name_root = "org.onlab",
test_deps = TEST_DEPS,
- package_name_root = 'org.onlab',
+ test_srcs = glob([TEST_SRC + "*.java"]),
visibility = ["//visibility:public"],
+ deps = COMPILE_DEPS,
)
-
-
diff --git a/utils/misc/BUILD b/utils/misc/BUILD
index 3635a41..cfb787f 100644
--- a/utils/misc/BUILD
+++ b/utils/misc/BUILD
@@ -1,17 +1,19 @@
COMPILE_DEPS = COMPILE + JACKSON + [
- "@kryo//jar",
- "@metrics_core//jar",
- "@netty//jar",
- "@netty_common//jar",
- "@objenesis//jar",
+ "@kryo//jar",
+ "@metrics_core//jar",
+ "@netty//jar",
+ "@netty_common//jar",
+ "@objenesis//jar",
]
osgi_jar_with_tests(
- name = 'onlab-misc',
- deps = COMPILE_DEPS,
- package_name_root = 'org.onlab',
- exclude_tests = ['org.onlab.graph.AbstractGraphPathSearchTest',
- 'org.onlab.graph.GraphTest',
- 'org.onlab.util.SlidingWindowCounterTest'],
+ name = "onlab-misc",
+ exclude_tests = [
+ "org.onlab.graph.AbstractGraphPathSearchTest",
+ "org.onlab.graph.GraphTest",
+ "org.onlab.util.SlidingWindowCounterTest",
+ ],
+ package_name_root = "org.onlab",
visibility = ["//visibility:public"],
+ deps = COMPILE_DEPS,
)
diff --git a/utils/osgi/BUILD b/utils/osgi/BUILD
index 91dd172..688e4c2 100644
--- a/utils/osgi/BUILD
+++ b/utils/osgi/BUILD
@@ -1,8 +1,8 @@
COMPILE_DEPS = COMPILE
osgi_jar_with_tests(
- name = 'onlab-osgi',
- deps = COMPILE_DEPS,
- package_name_root = 'org.onlab',
+ name = "onlab-osgi",
+ package_name_root = "org.onlab",
visibility = ["//visibility:public"],
+ deps = COMPILE_DEPS,
)
diff --git a/utils/osgiwrap/BUILD b/utils/osgiwrap/BUILD
index 8e1e872..389cc8d 100644
--- a/utils/osgiwrap/BUILD
+++ b/utils/osgiwrap/BUILD
@@ -1,15 +1,15 @@
-OSGIWRAP_EXECUTABLE = 'osgi-jar'
+OSGIWRAP_EXECUTABLE = "osgi-jar"
COMPILE_DEPS = [
- '@guava//jar',
- '@bndlib//jar',
- '@org_apache_felix_scr_bnd//jar'
+ "@guava//jar",
+ "@bndlib//jar",
+ "@org_apache_felix_scr_bnd//jar",
]
java_binary(
name = OSGIWRAP_EXECUTABLE,
- srcs = glob(['src/main/java/**/*.java']),
+ srcs = glob(["src/main/java/**/*.java"]),
+ main_class = "org.onlab.osgiwrap.OSGiWrapper",
+ visibility = ["//visibility:public"],
deps = COMPILE_DEPS,
- main_class = 'org.onlab.osgiwrap.OSGiWrapper',
- visibility = ["//visibility:public"]
)
diff --git a/utils/rest/BUILD b/utils/rest/BUILD
index 0538ba6..27a221f 100644
--- a/utils/rest/BUILD
+++ b/utils/rest/BUILD
@@ -1,13 +1,13 @@
COMPILE_DEPS = COMPILE + JACKSON + [
- "//utils/osgi:onlab-osgi",
- "//utils/misc:onlab-misc",
- "@javax_ws_rs_api//jar",
- "@jersey_server//jar",
+ "//utils/osgi:onlab-osgi",
+ "//utils/misc:onlab-misc",
+ "@javax_ws_rs_api//jar",
+ "@jersey_server//jar",
]
osgi_jar(
- name = 'onlab-rest',
- deps = COMPILE_DEPS,
- package_name_root = 'org.onlab',
+ name = "onlab-rest",
+ package_name_root = "org.onlab",
visibility = ["//visibility:public"],
+ deps = COMPILE_DEPS,
)