mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 01:41:26 +02:00
37 lines
905 B
Python
37 lines
905 B
Python
# 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'],
|
|
) |