blob: 12ffbd050a727c604398db7f2631627344559e34 [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/**/'
Brian O'Connorb86c9202016-04-05 20:15:04 -07003RESOURCES_ROOT = 'src/main/resources/'
Ray Milkeyf80bbb22016-03-11 10:16:22 -08004
5CURRENT_NAME = 'onos-gui'
6CURRENT_TARGET = ':' + CURRENT_NAME
7
8COMPILE_DEPS = [
9 '//lib:CORE_DEPS',
10 '//lib:javax.ws.rs-api',
11 '//lib:servlet-api',
12 '//lib:jetty-websocket',
13 '//lib:jetty-util',
14 '//lib:jersey-media-multipart',
15 '//incubator/api:onos-incubator-api',
16 '//incubator/net:onos-incubator-net',
17 '//utils/rest:onlab-rest',
18 '//core/store/serializers:onos-core-serializers',
19]
20
21TEST_DEPS = [
22 '//lib:TEST',
23]
24
Brian O'Connorb86c9202016-04-05 20:15:04 -070025osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080026 name = CURRENT_NAME,
27 srcs = glob([SRC + '/*.java']),
Brian O'Connorb86c9202016-04-05 20:15:04 -070028 resources = glob([RESOURCES_ROOT + '**']),
29 resources_root = RESOURCES_ROOT,
Ray Milkeyf80bbb22016-03-11 10:16:22 -080030 deps = COMPILE_DEPS,
31 visibility = ['PUBLIC'],
Ray Milkeyf80bbb22016-03-11 10:16:22 -080032)
33
34java_test(
35 name = 'tests',
36 srcs = glob([TEST + '/*.java']),
37 deps = COMPILE_DEPS +
38 TEST_DEPS +
39 [CURRENT_TARGET],
40 source_under_test = [CURRENT_TARGET],
41)