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 | 69e37d9 | 2016-10-12 15:05:09 -0700 | [diff] [blame] | 5 | url = 'https://oss.sonatype.org/content/repositories/snapshots/org/onosproject/buck-api/0.1-SNAPSHOT/buck-api-0.1-20161012.212306-4.jar', |
| 6 | sha1 = 'c9cca7ae74ad77dbcbd8e58fc2c6f8ed2b435305', |
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( |
Brian O'Connor | 79b7067 | 2016-10-20 13:44:52 -0700 | [diff] [blame^] | 34 | name = 'onos', |
Brian O'Connor | e8468b5 | 2016-07-25 13:42:36 -0700 | [diff] [blame] | 35 | deps = [':lib'], |
| 36 | visibility = ['PUBLIC'], |
| 37 | ) |