blob: d0706415e189f71dfd79d856ea109c76e20da838 [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onlab/**/'
2TEST = 'src/test/java/org/onlab/**/'
3CURRENT_NAME = 'onlab-rest'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:COMPILE',
8 '//utils/osgi:onlab-osgi',
9 '//utils/misc:onlab-misc',
10 '//lib:javax.ws.rs-api',
11 '//lib:jersey-server',
12]
13
14TEST_DEPS = [
15 '//lib:TEST',
16]
17
18java_library(
19 name = CURRENT_NAME,
20 srcs = glob([SRC + '/*.java']),
21 deps = COMPILE_DEPS,
22 visibility = ['PUBLIC'],
23)
24
25java_test(
26 name = 'tests',
27 srcs = glob([TEST + '/*.java']),
28 deps = COMPILE_DEPS +
29 TEST_DEPS +
30 [CURRENT_TARGET],
31 source_under_test = [CURRENT_TARGET],
32)