blob: 37f1e8ea395e0f972fd75d6e97aed7cfe28b62c3 [file] [log] [blame]
# Comment the remote_jar out for local buck development
remote_jar (
name = 'buck-api',
out = 'buck.jar',
url = 'https://github.com/bocon13/buck/releases/download/v2016.09.13.01/buck.jar',
sha1 = 'd5415b4326e5316675532a8cd48001a8456e8c9e',
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'
# )
COMPILE = [
'//lib:qdox',
'//lib: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 = 'onosjar',
deps = [':lib'],
visibility = ['PUBLIC'],
)