blob: bffb300ebfc5ef8709b3e854b10e53d51695fc29 [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 -08003CURRENT_NAME = 'onos-core-net'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
8 '//incubator/api:onos-incubator-api',
9]
10
11TEST_DEPS = [
Ray Milkey7c251822016-04-06 17:38:25 -070012 '//lib:TEST_ADAPTERS',
13 '//core/common:onos-core-common',
14 '//core/store/dist:onos-core-dist',
15 '//core/store/dist:onos-core-dist-tests',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080016]
17
Brian O'Connorb86c9202016-04-05 20:15:04 -070018osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080019 name = CURRENT_NAME,
20 srcs = glob([SRC + '/*.java']),
21 deps = COMPILE_DEPS,
22 visibility = ['PUBLIC'],
23)
24
25java_test(
26 name = 'tests',
27 srcs = glob([TEST + '/*.java']),
28 deps = COMPILE_DEPS +
29 TEST_DEPS +
30 [CURRENT_TARGET],
31 source_under_test = [CURRENT_TARGET],
Ray Milkey7c251822016-04-06 17:38:25 -070032 resources_root = 'src/test/resources',
33 resources = glob(['src/test/resources/**']),
Ray Milkeyf80bbb22016-03-11 10:16:22 -080034)