blob: ffdb2949e5f697300d59135b0752c01b14f63e6f [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/**/'
2TEST = 'src/test/java/org/onosproject/**/'
3CURRENT_NAME = 'onos-core-primitives'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
8 '//core/common:onos-core-common',
9 '//incubator/api:onos-incubator-api',
10 '//core/store/serializers:onos-core-serializers',
11 '//lib:copycat-client',
12 '//lib:copycat-server',
13 '//lib:copycat-protocol',
14 '//lib:copycat-core',
15 '//lib:typesafe-config',
16 '//lib:copycat-api',
17 '//lib:copycat-state-machine',
18 '//lib:copycat-state-log',
19 '//lib:catalyst-transport',
20 '//lib:catalyst-buffer',
21 '//lib:catalyst-common',
22 '//lib:catalyst-local',
23 '//lib:catalyst-serializer',
24 '//lib:atomix',
25 '//lib:atomix-resource',
26 '//lib:atomix-variables',
27 '//lib:atomix-resource-manager',
28]
29
30TEST_DEPS = [
31 '//lib:TEST',
32 '//core/api:onos-api-tests',
33]
34
Brian O'Connorb86c9202016-04-05 20:15:04 -070035osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080036 name = CURRENT_NAME,
37 srcs = glob([SRC + '/*.java']),
38 deps = COMPILE_DEPS,
39 visibility = ['PUBLIC'],
40)
41
42java_test(
43 name = 'tests',
44 srcs = glob([TEST + '/*.java']),
45 deps = COMPILE_DEPS +
46 TEST_DEPS +
47 [CURRENT_TARGET],
48 source_under_test = [CURRENT_TARGET],
49)