BUCK
1.15 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
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:javax.ws.rs-api',
'//lib:servlet-api',
'//lib:jetty-websocket',
'//lib:jetty-util',
'//lib:jersey-media-multipart',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//lib:jersey-server',
'//incubator/api:onos-incubator-api',
'//incubator/net:onos-incubator-net',
'//utils/rest:onlab-rest',
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
'//lib:TEST',
'//core/api:onos-api-tests',
]
RESOURCES = [
'WEB-INF/classes/index.html=src/main/webapp/index.html',
'WEB-INF/classes/login.html=src/main/webapp/login.html',
'WEB-INF/classes/error.html=src/main/webapp/error.html',
'WEB-INF/classes/not-ready.html=src/main/webapp/not-ready.html',
'WEB-INF/classes/onos.js=src/main/webapp/onos.js',
'WEB-INF/classes/nav.html=src/main/webapp/nav.html',
'WEB-INF/classes/app/view=src/main/webapp/app/view',
'WEB-INF/classes/raw=src/main/webapp/raw',
]
osgi_jar_with_tests (
name = 'onos-gui',
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
include_resources = ','.join(RESOURCES),
web_context = '/onos/ui',
)