Initial builds using bazel
Change-Id: I38123b396a2ffda5f36cdca43f3ad1fa67a7ab52
diff --git a/core/api/BUILD b/core/api/BUILD
new file mode 100644
index 0000000..be731ad
--- /dev/null
+++ b/core/api/BUILD
@@ -0,0 +1,27 @@
+COMPILE_DEPS = COMPILE + NETTY + JACKSON + METRICS + KRYO + [
+ '//utils/misc:onlab-misc',
+ '//utils/osgi:onlab-osgi',
+ '//utils/rest:onlab-rest',
+ '@joda_time//jar',
+ '@netty//jar',
+]
+
+osgi_jar_with_tests (
+ name = 'onos-api',
+ deps = COMPILE_DEPS,
+ exclude_tests = [
+ 'org.onosproject.net.config.basics.AbstractConfigTest',
+ 'org.onosproject.net.driver.AbstractDriverLoaderTest',
+ 'org.onosproject.net.intent.AbstractIntentTest',
+ 'org.onosproject.net.intent.ConnectivityIntentTest',
+ 'org.onosproject.net.intent.IntentTest',
+ 'org.onosproject.net.pi.runtime.PiConstantsTest',
+ 'org.onosproject.security.SecurityUtilTest',
+ 'org.onosproject.ui.AbstractUiTest',
+ 'org.onosproject.ui.model.AbstractUiModelTest',
+ 'org.onosproject.net.behaviour.QosIdTest',
+ ],
+ visibility = ["//visibility:public"],
+ #javadoc_files = glob(['src/main/javadoc/**/*']),
+ #javadoc_files_root = 'src/main/javadoc',
+)