blob: 02f00bfc1d37cfcd2ba06136181e8f31a924da47 [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',
Andrea Campanellae72ac552016-04-11 10:04:52 -070017 '//utils/osgi:onlab-osgi',
18 '//utils/osgi:onlab-osgi-tests',
19 '//incubator/api:onos-incubator-api-tests',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080020]
21
Brian O'Connorb86c9202016-04-05 20:15:04 -070022osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080023 name = CURRENT_NAME,
24 srcs = glob([SRC + '/*.java']),
25 deps = COMPILE_DEPS,
26 visibility = ['PUBLIC'],
27)
28
29java_test(
30 name = 'tests',
31 srcs = glob([TEST + '/*.java']),
32 deps = COMPILE_DEPS +
33 TEST_DEPS +
34 [CURRENT_TARGET],
35 source_under_test = [CURRENT_TARGET],
36)