Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/incubator/store/**/' |
| 2 | TEST = 'src/test/java/org/onosproject/incubator/store/**/' |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 3 | CURRENT_NAME = 'onos-incubator-store' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
Thomas Vachuska | ce54193 | 2016-04-06 11:25:53 -0700 | [diff] [blame] | 8 | '//lib:concurrent-trees', |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 9 | '//incubator/api:onos-incubator-api', |
| 10 | '//core/store/dist:onos-core-dist', |
Thomas Vachuska | ce54193 | 2016-04-06 11:25:53 -0700 | [diff] [blame] | 11 | '//core/store/serializers:onos-core-serializers' |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | TEST_DEPS = [ |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 15 | '//lib:TEST_ADAPTERS', |
| 16 | '//core/api:onos-api-tests', |
| 17 | '//core/common:onos-core-common-tests', |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 18 | ] |
| 19 | |
| 20 | osgi_jar( |
| 21 | name = CURRENT_NAME, |
| 22 | srcs = glob([SRC + '/*.java']), |
| 23 | deps = COMPILE_DEPS, |
| 24 | visibility = ['PUBLIC'], |
| 25 | ) |
| 26 | |
| 27 | java_test( |
| 28 | name = 'tests', |
| 29 | srcs = glob([TEST + '/*.java']), |
| 30 | deps = COMPILE_DEPS + |
| 31 | TEST_DEPS + |
| 32 | [CURRENT_TARGET], |
| 33 | source_under_test = [CURRENT_TARGET], |
| 34 | ) |