blob: b251ae16ab3780d9308958b276249e3e99f641ec [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/**']),
Ray Milkey2a749832016-08-02 15:22:20 -070023 package_name_root = 'org.onlab',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080024)
25
26java_test(
27 name = 'tests',
28 srcs = glob([TEST + '/*.java']),
29 deps = SRC_DEPS +
30 TEST_DEPS +
31 [CURRENT_TARGET],
Ray Milkeyf80bbb22016-03-11 10:16:22 -080032)