blob: 37f1e8ea395e0f972fd75d6e97aed7cfe28b62c3 [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'Connoree674952016-09-13 16:31:45 -07005 url = 'https://github.com/bocon13/buck/releases/download/v2016.09.13.01/buck.jar',
6 sha1 = 'd5415b4326e5316675532a8cd48001a8456e8c9e',
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(
34 name = 'onosjar',
35 deps = [':lib'],
36 visibility = ['PUBLIC'],
37)