blob: 24bcf72f4440b9e4a3b689f56d6b8d73506f6bbe [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onlab/junit/'
2TEST = 'src/test/java/org/onlab/junit/'
3CURRENT_NAME = 'onlab-junit'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6SRC_DEPS = [
7 '//lib:junit',
8 '//lib:hamcrest-all',
9 '//lib:guava',
10]
11
12TEST_DEPS = [
13 '//lib:guava-testlib',
14]
15
Brian O'Connorb86c9202016-04-05 20:15:04 -070016osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080017 name = CURRENT_NAME,
18 srcs = glob([SRC + '/*.java']),
19 deps = SRC_DEPS,
20 visibility = ['PUBLIC'],
21 resources_root = 'src/main/resources',
22 resources = glob(['src/main/resources/**']),
23)
24
25java_test(
26 name = 'tests',
27 srcs = glob([TEST + '/*.java']),
28 deps = SRC_DEPS +
29 TEST_DEPS +
30 [CURRENT_TARGET],
31 source_under_test = [CURRENT_TARGET],
32)