Jian Li | b8ea0b5 | 2016-03-31 09:33:27 -0700 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
Brian O'Connor | 85f28d0 | 2016-04-05 20:31:18 -0700 | [diff] [blame] | 2 | TEST = 'src/test/java/org/onosproject/**/' |
Jian Li | b8ea0b5 | 2016-03-31 09:33:27 -0700 | [diff] [blame] | 3 | |
| 4 | CURRENT_NAME = 'onos-app-graphite' |
| 5 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 6 | |
| 7 | COMPILE_DEPS = [ |
| 8 | '//lib:CORE_DEPS', |
| 9 | '//lib:gmetric4j', |
| 10 | '//lib:metrics-graphite', |
| 11 | ] |
| 12 | |
| 13 | TEST_DEPS = [ |
| 14 | '//lib:TEST', |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 15 | '//core/api:onos-api-tests', |
Jian Li | b8ea0b5 | 2016-03-31 09:33:27 -0700 | [diff] [blame] | 16 | ] |
| 17 | |
| 18 | java_library( |
| 19 | name = CURRENT_NAME, |
| 20 | srcs = glob([SRC + '/*.java']), |
| 21 | deps = COMPILE_DEPS, |
| 22 | visibility = ['PUBLIC'], |
| 23 | ) |
| 24 | |
| 25 | java_test( |
| 26 | name = 'tests', |
| 27 | srcs = glob([TEST + '/*.java']), |
| 28 | deps = COMPILE_DEPS + |
| 29 | TEST_DEPS + |
| 30 | [CURRENT_TARGET], |
| 31 | source_under_test = [CURRENT_TARGET], |
| 32 | ) |