Initial BUCK build
Change-Id: I64e8a979301989062f4545a4841b06c15a372049
diff --git a/BUCK b/BUCK
new file mode 100644
index 0000000..a626006
--- /dev/null
+++ b/BUCK
@@ -0,0 +1,48 @@
+SRC = 'src/main/java/org/onosproject/**/'
+TEST = 'src/main/java/org/onosproject/**/'
+
+COMPILE_DEPS = [
+ '//lib:CORE_DEPS',
+ '//lib:javax.ws.rs-api',
+ '//lib:jersey-client',
+ '//lib:org.apache.karaf.shell.console',
+ '//utils/rest:onlab-rest',
+ '//cli:onos-cli',
+ '//core/store/serializers:onos-core-serializers',
+]
+
+TEST_DEPS = [
+ '//lib:TEST',
+]
+
+java_library(
+ name = 'onos-app-olt-api',
+ srcs = glob(['api/' + SRC + '*.java']),
+ deps = COMPILE_DEPS,
+ visibility = ['PUBLIC'],
+)
+
+java_test(
+ name = 'onos-app-olt-api-tests',
+ srcs = glob([TEST + 'api/*.java']),
+ deps = COMPILE_DEPS +
+ TEST_DEPS +
+ [':onos-app-olt-api'],
+ source_under_test = [':onos-app-olt-api'],
+)
+
+java_library(
+ name = 'onos-app-olt-app',
+ srcs = glob(['app/' + SRC + '*.java']),
+ deps = COMPILE_DEPS + [':onos-app-olt-api'],
+ visibility = ['PUBLIC'],
+)
+
+java_test(
+ name = 'onos-app-olt-app-tests',
+ srcs = glob([TEST + 'app/*.java']),
+ deps = COMPILE_DEPS +
+ TEST_DEPS +
+ [':onos-app-olt-api', ':onos-app-olt-app'],
+ source_under_test = [':onos-app-olt-app'],
+)