blob: 156a545eeb2257e8dd430498e3b564544d4c6b57 [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-cpman-api'
5CURRENT_TARGET = ':' + CURRENT_NAME
6
7COMPILE_DEPS = [
8 '//lib:CORE_DEPS',
Brian O'Connor284fb692016-04-04 19:26:51 -07009 '//core/store/serializers:onos-core-serializers',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080010 ]
11
12TEST_DEPS = [
Ray Milkey7c251822016-04-06 17:38:25 -070013 '//lib:TEST_ADAPTERS',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080014]
15
16java_library(
17 name = CURRENT_NAME,
18 srcs = glob([SRC + '/*.java']),
19 deps = COMPILE_DEPS,
20 visibility = ['PUBLIC'],
21)
22
23java_test(
24 name = 'tests',
25 srcs = glob([TEST + '/*.java']),
26 deps = COMPILE_DEPS +
27 TEST_DEPS +
28 [CURRENT_TARGET],
29 source_under_test = [CURRENT_TARGET],
30)