blob: 6c56b3fea268d0add18438a5542b14dec1cdd8d0 [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-dist'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
8 '//core/common:onos-core-common',
9 '//utils/rest:onlab-rest',
10 '//core/store/serializers:onos-core-serializers',
11 '//lib:netty-transport',
12 '//lib:netty-codec',
13 '//lib:netty-buffer',
14 '//lib:netty-handler',
15 '//lib:netty-transport-native-epoll',
16 '//lib:commons-math3',
17]
18
19TEST_DEPS = [
20 '//lib:TEST',
21 '//core/api:onos-api-tests',
22 '//core/common:onos-core-common-tests',
23]
24
Brian O'Connorb86c9202016-04-05 20:15:04 -070025osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080026 name = CURRENT_NAME,
27 srcs = glob([SRC + '/*.java']),
28 deps = COMPILE_DEPS,
29 visibility = ['PUBLIC'],
30)
31
32java_test(
Ray Milkey7c251822016-04-06 17:38:25 -070033 name= 'onos-core-dist-tests',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080034 srcs = glob([TEST + '/*.java']),
35 deps = COMPILE_DEPS +
36 TEST_DEPS +
37 [CURRENT_TARGET],
38 source_under_test = [CURRENT_TARGET],
Ray Milkey7c251822016-04-06 17:38:25 -070039 visibility = ['PUBLIC'],
Ray Milkeyf80bbb22016-03-11 10:16:22 -080040)