| # Comment the remote_jar out for local buck development |
| remote_jar ( |
| name = 'buck-api', |
| out = 'buck.jar', |
| url = 'https://oss.sonatype.org/content/repositories/snapshots/org/onosproject/buck-api/0.1-SNAPSHOT/buck-api-0.1-20161113.012708-6.jar', |
| sha1 = 'da823563b03964eafc9ff76cd721b9253ae473a1', |
| visibility = [], |
| ) |
| |
| # Uncomment the prebuilt_jar and copy buck-api to lib/buck.jar for local buck development |
| # prebuilt_jar ( |
| # name = 'buck-api', |
| # binary_jar = 'lib/buck.jar' |
| # ) |
| |
| # Use buck's guava version - 19.0 |
| remote_jar ( |
| name = 'guava', |
| out = 'guava-19.0.jar', |
| url = 'mvn:com.google.guava:guava:jar:19.0', |
| sha1 = '6ce200f6b23222af3d8abb6b6459e6c44f4bb0e9', |
| maven_coords = 'com.google.guava:guava:19.0', |
| ) |
| |
| COMPILE = [ |
| '//lib:qdox', |
| ':guava', |
| '//lib:bndlib', |
| '//lib:org.apache.felix.scr.bnd' |
| ] |
| |
| java_library( |
| name = 'lib', |
| srcs = glob(['src/main/java/**/*.java']), |
| resources = glob(['src/main/resources/**/*']), |
| resources_root = 'src/main/resources', |
| deps = COMPILE, |
| provided_deps = [':buck-api'], |
| visibility = [], |
| ) |
| |
| java_binary( |
| name = 'onos', |
| deps = [':lib'], |
| visibility = ['PUBLIC'], |
| ) |