blob: 5301057c517e3c1f70ce84dbf8f3f2e6a481803a [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/**/'
Brian O'Connor85f28d02016-04-05 20:31:18 -07002TEST = 'src/test/java/org/onosproject/**/'
Ray Milkeyf80bbb22016-03-11 10:16:22 -08003
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)