blob: 2689f589f484b8adfe11680869132d8c097fa23e [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/incubator/**/'
Brian O'Connor85f28d02016-04-05 20:31:18 -07002TEST = 'src/test/java/org/onosproject/incubator/**/'
Ray Milkeyf80bbb22016-03-11 10:16:22 -08003CURRENT_NAME = 'onos-incubator-api'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
8]
9
10TEST_DEPS = [
Ray Milkey7c251822016-04-06 17:38:25 -070011 '//lib:TEST_ADAPTERS',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080012]
13
Brian O'Connorb86c9202016-04-05 20:15:04 -070014osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080015 name = CURRENT_NAME,
16 srcs = glob([SRC + '/*.java']),
17 deps = COMPILE_DEPS,
18 visibility = ['PUBLIC'],
19)
20
21java_test(
Ray Milkey7c251822016-04-06 17:38:25 -070022 name = 'onos-incubator-api-tests',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080023 srcs = glob([TEST + '/*.java']),
24 deps = COMPILE_DEPS +
25 TEST_DEPS +
26 [CURRENT_TARGET],
27 source_under_test = [CURRENT_TARGET],
Ray Milkey7c251822016-04-06 17:38:25 -070028 visibility = ['PUBLIC'],
Ray Milkeyd77c8812016-04-19 13:06:00 -070029 resources_root = 'src/test/resources',
30 resources = glob(['src/test/resources/**']),
Ray Milkeyf80bbb22016-03-11 10:16:22 -080031)