blob: 8653ad596294e743bec31e71f6c20eed54d0ac2b [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
25java_library(
26 name = CURRENT_NAME,
27 srcs = glob([SRC + '/*.java']),
28 deps = COMPILE_DEPS,
29 visibility = ['PUBLIC'],
30)
31
32java_test(
33 name= 'tests',
34 srcs = glob([TEST + '/*.java']),
35 deps = COMPILE_DEPS +
36 TEST_DEPS +
37 [CURRENT_TARGET],
38 source_under_test = [CURRENT_TARGET],
39)