Adding remote_jar bucklet
Change-Id: I925c3b56158709195e4b5e1278de325cac013090
Showing
2 changed files
with
24 additions
and
0 deletions
1 | include_defs('//bucklets/maven_jar.bucklet') | 1 | include_defs('//bucklets/maven_jar.bucklet') |
2 | include_defs('//bucklets/onos.bucklet') | 2 | include_defs('//bucklets/onos.bucklet') |
3 | include_defs('//bucklets/onos_app.bucklet') | 3 | include_defs('//bucklets/onos_app.bucklet') |
4 | +include_defs('//bucklets/remote_jar.bucklet') | ||
4 | 5 | ||
5 | BASE_DEPS = [ | 6 | BASE_DEPS = [ |
6 | '//lib:junit', | 7 | '//lib:junit', | ... | ... |
bucklets/remote_jar.bucklet
0 → 100644
1 | +def remote_jar ( | ||
2 | + name, | ||
3 | + out, | ||
4 | + url, | ||
5 | + sha1, | ||
6 | + maven_coords = None, | ||
7 | + visibility = [ 'PUBLIC' ], | ||
8 | + ): | ||
9 | + | ||
10 | + prebuilt_jar( | ||
11 | + name = name, | ||
12 | + binary_jar = ':' + out, | ||
13 | + maven_coords = maven_coords, | ||
14 | + visibility = visibility, | ||
15 | + ) | ||
16 | + | ||
17 | + remote_file( | ||
18 | + name = out, | ||
19 | + out = out, | ||
20 | + url = url, | ||
21 | + sha1 = sha1, | ||
22 | + visibility = [] | ||
23 | + ) |
-
Please register or login to post a comment