blob: 28ee97448b39f3e35ad2a21c5f0d47c3f191419b [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/incubator/net/**/'
Brian O'Connor85f28d02016-04-05 20:31:18 -07002TEST = 'src/test/java/org/onosproject/incubator/net/**/'
Ray Milkeyf80bbb22016-03-11 10:16:22 -08003CURRENT_NAME = 'onos-incubator-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/api:onos-api-tests',
14 '//core/common:onos-core-common-tests',
15 '//incubator/store:onos-incubator-store',
16 '//core/store/serializers:onos-core-serializers',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080017]
18
Brian O'Connorb86c9202016-04-05 20:15:04 -070019osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080020 name = CURRENT_NAME,
21 srcs = glob([SRC + '/*.java']),
22 deps = COMPILE_DEPS,
23 visibility = ['PUBLIC'],
24)
25
26java_test(
27 name = 'tests',
28 srcs = glob([TEST + '/*.java']),
29 deps = COMPILE_DEPS +
30 TEST_DEPS +
31 [CURRENT_TARGET],
32 source_under_test = [CURRENT_TARGET],
33)