blob: 859394104bfd1421ec29d66bd1de57a1b0fec17a [file] [log] [blame]
Brian O'Connoree674952016-09-13 16:31:45 -07001# Comment the remote_jar out for local buck development
Brian O'Connore8468b52016-07-25 13:42:36 -07002remote_jar (
3 name = 'buck-api',
4 out = 'buck.jar',
Brian O'Connor920f7c22016-11-12 18:07:33 -08005 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'Connore8468b52016-07-25 13:42:36 -07007 visibility = [],
8)
9
Brian O'Connoree674952016-09-13 16:31:45 -070010# 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'Connor4f973232017-05-25 13:33:50 -070016# Use buck's guava version - 19.0
17remote_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'Connore8468b52016-07-25 13:42:36 -070025COMPILE = [
26 '//lib:qdox',
Brian O'Connor4f973232017-05-25 13:33:50 -070027 ':guava',
Brian O'Connoree674952016-09-13 16:31:45 -070028 '//lib:bndlib',
29 '//lib:org.apache.felix.scr.bnd'
Brian O'Connore8468b52016-07-25 13:42:36 -070030]
31
32java_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
42java_binary(
Brian O'Connor79b70672016-10-20 13:44:52 -070043 name = 'onos',
Brian O'Connore8468b52016-07-25 13:42:36 -070044 deps = [':lib'],
45 visibility = ['PUBLIC'],
Brian O'Connor920f7c22016-11-12 18:07:33 -080046)