BUCK
853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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'],
)