blob: 49be7a92628d3ce37ee6425f86f6de57b74b16f1 [file] [log] [blame]
# Comment the remote_jar out for local buck development
remote_jar (
name = 'buck-api',
out = 'buck.jar',
url = 'https://oss.sonatype.org/content/repositories/snapshots/org/onosproject/buck-api/0.1-SNAPSHOT/buck-api-0.1-20161012.212306-4.jar',
sha1 = 'c9cca7ae74ad77dbcbd8e58fc2c6f8ed2b435305',
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 = 'onos',
deps = [':lib'],
visibility = ['PUBLIC'],
)