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-core-dist' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//core/common:onos-core-common', |
| 9 | '//utils/rest:onlab-rest', |
| 10 | '//core/store/serializers:onos-core-serializers', |
| 11 | '//lib:netty-transport', |
| 12 | '//lib:netty-codec', |
| 13 | '//lib:netty-buffer', |
| 14 | '//lib:netty-handler', |
| 15 | '//lib:netty-transport-native-epoll', |
| 16 | '//lib:commons-math3', |
| 17 | ] |
| 18 | |
| 19 | TEST_DEPS = [ |
| 20 | '//lib:TEST', |
| 21 | '//core/api:onos-api-tests', |
| 22 | '//core/common:onos-core-common-tests', |
| 23 | ] |
| 24 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 25 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 26 | name = CURRENT_NAME, |
| 27 | srcs = glob([SRC + '/*.java']), |
| 28 | deps = COMPILE_DEPS, |
| 29 | visibility = ['PUBLIC'], |
| 30 | ) |
| 31 | |
| 32 | java_test( |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 33 | name= 'onos-core-dist-tests', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 34 | srcs = glob([TEST + '/*.java']), |
| 35 | deps = COMPILE_DEPS + |
| 36 | TEST_DEPS + |
| 37 | [CURRENT_TARGET], |
| 38 | source_under_test = [CURRENT_TARGET], |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 39 | visibility = ['PUBLIC'], |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 40 | ) |