Brian O'Connor | ee67495 | 2016-09-13 16:31:45 -0700 | [diff] [blame] | 1 | # Comment the remote_jar out for local buck development |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 2 | remote_jar ( |
| 3 | name = 'buck-api', |
| 4 | out = 'buck.jar', |
Brian O'Connor | 920f7c2 | 2016-11-12 18:07:33 -0800 | [diff] [blame] | 5 | url = 'https://oss.sonatype.org/content/repositories/snapshots/org/onosproject/buck-api/0.1-SNAPSHOT/buck-api-0.1-20161113.012708-6.jar', |
| 6 | sha1 = 'da823563b03964eafc9ff76cd721b9253ae473a1', |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 7 | visibility = [], |
| 8 | ) |
| 9 | |
Brian O'Connor | ee67495 | 2016-09-13 16:31:45 -0700 | [diff] [blame] | 10 | # Uncomment the prebuilt_jar and copy buck-api to lib/buck.jar for local buck development |
| 11 | # prebuilt_jar ( |
| 12 | # name = 'buck-api', |
| 13 | # binary_jar = 'lib/buck.jar' |
| 14 | # ) |
| 15 | |
Brian O'Connor | 4f97323 | 2017-05-25 13:33:50 -0700 | [diff] [blame^] | 16 | # Use buck's guava version - 19.0 |
| 17 | remote_jar ( |
| 18 | name = 'guava', |
| 19 | out = 'guava-19.0.jar', |
| 20 | url = 'mvn:com.google.guava:guava:jar:19.0', |
| 21 | sha1 = '6ce200f6b23222af3d8abb6b6459e6c44f4bb0e9', |
| 22 | maven_coords = 'com.google.guava:guava:19.0', |
| 23 | ) |
| 24 | |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 25 | COMPILE = [ |
| 26 | '//lib:qdox', |
Brian O'Connor | 4f97323 | 2017-05-25 13:33:50 -0700 | [diff] [blame^] | 27 | ':guava', |
Brian O'Connor | ee67495 | 2016-09-13 16:31:45 -0700 | [diff] [blame] | 28 | '//lib:bndlib', |
| 29 | '//lib:org.apache.felix.scr.bnd' |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 30 | ] |
| 31 | |
| 32 | java_library( |
| 33 | name = 'lib', |
| 34 | srcs = glob(['src/main/java/**/*.java']), |
| 35 | resources = glob(['src/main/resources/**/*']), |
| 36 | resources_root = 'src/main/resources', |
| 37 | deps = COMPILE, |
| 38 | provided_deps = [':buck-api'], |
| 39 | visibility = [], |
| 40 | ) |
| 41 | |
| 42 | java_binary( |
Brian O'Connor | 79b7067 | 2016-10-20 13:44:52 -0700 | [diff] [blame] | 43 | name = 'onos', |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 44 | deps = [':lib'], |
| 45 | visibility = ['PUBLIC'], |
Brian O'Connor | 920f7c2 | 2016-11-12 18:07:33 -0800 | [diff] [blame] | 46 | ) |