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 | ee67495 | 2016-09-13 16:31:45 -0700 | [diff] [blame] | 5 | url = 'https://github.com/bocon13/buck/releases/download/v2016.09.13.01/buck.jar', |
| 6 | sha1 = 'd5415b4326e5316675532a8cd48001a8456e8c9e', |
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 | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 16 | COMPILE = [ |
| 17 | '//lib:qdox', |
Brian O'Connor | ee67495 | 2016-09-13 16:31:45 -0700 | [diff] [blame] | 18 | '//lib:guava', |
| 19 | '//lib:bndlib', |
| 20 | '//lib:org.apache.felix.scr.bnd' |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 21 | ] |
| 22 | |
| 23 | java_library( |
| 24 | name = 'lib', |
| 25 | srcs = glob(['src/main/java/**/*.java']), |
| 26 | resources = glob(['src/main/resources/**/*']), |
| 27 | resources_root = 'src/main/resources', |
| 28 | deps = COMPILE, |
| 29 | provided_deps = [':buck-api'], |
| 30 | visibility = [], |
| 31 | ) |
| 32 | |
| 33 | java_binary( |
| 34 | name = 'onosjar', |
| 35 | deps = [':lib'], |
| 36 | visibility = ['PUBLIC'], |
| 37 | ) |