blob: 1fc0618ddec1506c25a20825ea585313e2a27880 [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-restsb-ctl'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
8 '//lib:jersey-client',
9 '//lib:jersey-common',
10 '//lib:httpclient-osgi',
11 '//lib:httpcore-osgi',
12 '//lib:javax.ws.rs-api',
13 '//lib:hk2-api',
14 '//lib:jersey-guava',
15 '//lib:aopalliance-repackaged',
16 '//lib:javax.inject',
17 '//protocols/rest/api:onos-restsb-api',
18]
19
20TEST_DEPS = [
21 '//lib:TEST',
22]
23
24java_library(
25 name = CURRENT_NAME,
26 srcs = glob([SRC + '/*.java']),
27 deps = COMPILE_DEPS,
28 visibility = ['PUBLIC'],
29)
30
31java_test(
32 name = 'tests',
33 srcs = glob([TEST + '/*.java']),
34 deps = COMPILE_DEPS +
35 TEST_DEPS +
36 [CURRENT_TARGET],
37 source_under_test = [CURRENT_TARGET],
38)