Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onlab/junit/' |
| 2 | TEST = 'src/test/java/org/onlab/junit/' |
| 3 | CURRENT_NAME = 'onlab-junit' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | SRC_DEPS = [ |
| 7 | '//lib:junit', |
| 8 | '//lib:hamcrest-all', |
| 9 | '//lib:guava', |
| 10 | ] |
| 11 | |
| 12 | TEST_DEPS = [ |
| 13 | '//lib:guava-testlib', |
| 14 | ] |
| 15 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame^] | 16 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 17 | 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 | |
| 25 | java_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 | ) |