blob: c00da6cec5a1245f4de028c955654c09fb1c44fe [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/**/'
2TEST = 'src/main/java/org/onosproject/**/'
3
4CURRENT_NAME = 'onos-gui'
5CURRENT_TARGET = ':' + CURRENT_NAME
6
7COMPILE_DEPS = [
8 '//lib:CORE_DEPS',
9 '//lib:javax.ws.rs-api',
10 '//lib:servlet-api',
11 '//lib:jetty-websocket',
12 '//lib:jetty-util',
13 '//lib:jersey-media-multipart',
14 '//incubator/api:onos-incubator-api',
15 '//incubator/net:onos-incubator-net',
16 '//utils/rest:onlab-rest',
17 '//core/store/serializers:onos-core-serializers',
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 resources_root = 'src/main/resources',
30 resources = glob(['src/main/resources/**']),
31)
32
33java_test(
34 name = 'tests',
35 srcs = glob([TEST + '/*.java']),
36 deps = COMPILE_DEPS +
37 TEST_DEPS +
38 [CURRENT_TARGET],
39 source_under_test = [CURRENT_TARGET],
40)