Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
| 2 | TEST = 'src/test/java/org/onosproject/**/' |
| 3 | CURRENT_NAME = 'onos-restsb-ctl' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//lib:jersey-client', |
| 9 | '//lib:jersey-common', |
| 10 | '//lib:httpclient-osgi', |
| 11 | '//lib:httpcore-osgi', |
| 12 | '//lib:javax.ws.rs-api', |
| 13 | '//lib:hk2-api', |
| 14 | '//lib:jersey-guava', |
| 15 | '//lib:aopalliance-repackaged', |
| 16 | '//lib:javax.inject', |
| 17 | '//protocols/rest/api:onos-restsb-api', |
| 18 | ] |
| 19 | |
| 20 | TEST_DEPS = [ |
| 21 | '//lib:TEST', |
| 22 | ] |
| 23 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 24 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 25 | name = CURRENT_NAME, |
| 26 | srcs = glob([SRC + '/*.java']), |
| 27 | deps = COMPILE_DEPS, |
| 28 | visibility = ['PUBLIC'], |
| 29 | ) |
| 30 | |
| 31 | java_test( |
| 32 | name = 'tests', |
| 33 | srcs = glob([TEST + '/*.java']), |
| 34 | deps = COMPILE_DEPS + |
| 35 | TEST_DEPS + |
| 36 | [CURRENT_TARGET], |
| 37 | source_under_test = [CURRENT_TARGET], |
| 38 | ) |