Security-Mode ONOS BUCK
Change-Id: I72ef80d84665049c738eaa89394b95b699b33b6b
diff --git a/core/security/BUCK b/core/security/BUCK
index c9a6a91..f6b0da3 100644
--- a/core/security/BUCK
+++ b/core/security/BUCK
@@ -1,7 +1,15 @@
+SRC = 'src/main/java/org/onosproject/security/**/'
+TEST = 'src/test/java/org/onosproject/security/**/'
+CURRENT_NAME = 'onos-security'
+CURRENT_TARGET = ':' + CURRENT_NAME
+
+
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:KRYO',
'//core/store/serializers:onos-core-serializers',
+ '//lib:org.apache.felix.framework.security',
+ '//core/api:onos-api',
]
TEST_DEPS = [
@@ -10,7 +18,16 @@
osgi_jar_with_tests (
name = 'onos-security',
+ srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
visibility = ['PUBLIC'],
)
+
+java_test(
+ name = 'tests',
+ srcs = glob([TEST + '/*.java']),
+ deps = COMPILE_DEPS +
+ TEST_DEPS +
+ [CURRENT_TARGET],
+)
\ No newline at end of file