blob: 49be7a92628d3ce37ee6425f86f6de57b74b16f1 [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'Connor69e37d92016-10-12 15:05:09 -07005 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'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'],
37)