BUCK
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = 'onos-app-openstackinterface-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstackinterface-api-tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-openstackinterface-api'],
source_under_test = [':onos-app-openstackinterface-api'],
)
java_library(
name = 'onos-app-openstackinterface-app',
srcs = glob(['app/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstackinterface-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstackinterface-app-tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-openstackinterface-api', ':onos-app-openstackinterface-app'],
source_under_test = [':onos-app-openstackinterface-app'],
)