blob: 387c502e1e75af82ac94f65483b6cfb3a3bc10ea [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-api'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:COMPILE',
8 '//utils/misc:onlab-misc',
9 '//utils/osgi:onlab-osgi',
10 '//utils/rest:onlab-rest',
11]
12
13TEST_DEPS = [
14 '//lib:TEST',
15]
16
17java_library(
18 name = CURRENT_NAME,
19 srcs = glob([SRC + '/*.java']),
20 deps = COMPILE_DEPS,
21 resources_root = 'src/test/resources',
22 resources = glob(['src/test/resources/**']),
23 visibility = ['PUBLIC'],
24)
25
26java_test(
27 name = 'onos-api-tests',
28 visibility = ['PUBLIC'],
29 srcs = glob([TEST + '/*.java']),
30 deps = COMPILE_DEPS +
31 TEST_DEPS +
32 [CURRENT_TARGET],
33 source_under_test = [CURRENT_TARGET],
34)