blob: b66e0cd4845ac2f444bbbbe79db5a013258932c0 [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'Connore8468b52016-07-25 13:42:36 -070016COMPILE = [
17 '//lib:qdox',
Brian O'Connoree674952016-09-13 16:31:45 -070018 '//lib:guava',
19 '//lib:bndlib',
20 '//lib:org.apache.felix.scr.bnd'
Brian O'Connore8468b52016-07-25 13:42:36 -070021]
22
23java_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
33java_binary(
Brian O'Connor79b70672016-10-20 13:44:52 -070034 name = 'onos',
Brian O'Connore8468b52016-07-25 13:42:36 -070035 deps = [':lib'],
36 visibility = ['PUBLIC'],
Brian O'Connor920f7c22016-11-12 18:07:33 -080037)