blob: 27ca9ce01024d4a1f6214a8800fcafa79154d336 [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-app-cordvtn'
5CURRENT_TARGET = ':' + CURRENT_NAME
6
7COMPILE_DEPS = [
8 '//lib:CORE_DEPS',
9 '//lib:org.apache.karaf.shell.console',
10 '//lib:javax.ws.rs-api',
11 '//lib:jsch',
12 '//utils/rest:onlab-rest',
13 '//cli:onos-cli',
14 '//core/store/serializers:onos-core-serializers',
15 '//apps/openstackinterface:onos-app-openstackinterface-api',
16 '//apps/dhcp/api:onos-app-dhcp-api',
17 '//protocols/ovsdb/api:onos-ovsdb-api',
18 '//protocols/ovsdb/rfc:onos-ovsdb-rfc',
19]
20
21TEST_DEPS = [
22 '//lib:TEST',
23]
24
25java_library(
26 name = CURRENT_NAME,
27 srcs = glob([SRC + '/*.java']),
28 deps = COMPILE_DEPS,
29 visibility = ['PUBLIC'],
30 resources_root = 'src/main/resources',
31 resources = glob(['src/main/resources/**']),
32)
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)