blob: 613ac99ee6aa5c4aaae163abcdaf2e27f2710a2f [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
Brian O'Connorb86c9202016-04-05 20:15:04 -070024osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080025 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)