blob: d117f2920530f5ecced3a0d2c936b41e2f2fea16 [file] [log] [blame]
Ray Milkey7c251822016-04-06 17:38:25 -07001SRC = 'src/main/java/org/onosproject/incubator/store/**/'
2TEST = 'src/test/java/org/onosproject/incubator/store/**/'
Brian O'Connorb86c9202016-04-05 20:15:04 -07003CURRENT_NAME = 'onos-incubator-store'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
Thomas Vachuskace541932016-04-06 11:25:53 -07008 '//lib:concurrent-trees',
Brian O'Connorb86c9202016-04-05 20:15:04 -07009 '//incubator/api:onos-incubator-api',
10 '//core/store/dist:onos-core-dist',
Thomas Vachuskace541932016-04-06 11:25:53 -070011 '//core/store/serializers:onos-core-serializers'
Brian O'Connorb86c9202016-04-05 20:15:04 -070012]
13
14TEST_DEPS = [
Ray Milkey7c251822016-04-06 17:38:25 -070015 '//lib:TEST_ADAPTERS',
16 '//core/api:onos-api-tests',
17 '//core/common:onos-core-common-tests',
Brian O'Connorb86c9202016-04-05 20:15:04 -070018]
19
20osgi_jar(
21 name = CURRENT_NAME,
22 srcs = glob([SRC + '/*.java']),
23 deps = COMPILE_DEPS,
24 visibility = ['PUBLIC'],
25)
26
27java_test(
28 name = 'tests',
29 srcs = glob([TEST + '/*.java']),
30 deps = COMPILE_DEPS +
31 TEST_DEPS +
32 [CURRENT_TARGET],
33 source_under_test = [CURRENT_TARGET],
34)