Adding remote_jar bucklet
Change-Id: I925c3b56158709195e4b5e1278de325cac013090
diff --git a/buck-tools/default.defs b/buck-tools/default.defs
index 24caa38..125fee4 100644
--- a/buck-tools/default.defs
+++ b/buck-tools/default.defs
@@ -1,6 +1,7 @@
include_defs('//bucklets/maven_jar.bucklet')
include_defs('//bucklets/onos.bucklet')
include_defs('//bucklets/onos_app.bucklet')
+include_defs('//bucklets/remote_jar.bucklet')
BASE_DEPS = [
'//lib:junit',
diff --git a/bucklets/remote_jar.bucklet b/bucklets/remote_jar.bucklet
new file mode 100644
index 0000000..e45045a
--- /dev/null
+++ b/bucklets/remote_jar.bucklet
@@ -0,0 +1,23 @@
+def remote_jar (
+ name,
+ out,
+ url,
+ sha1,
+ maven_coords = None,
+ visibility = [ 'PUBLIC' ],
+ ):
+
+ prebuilt_jar(
+ name = name,
+ binary_jar = ':' + out,
+ maven_coords = maven_coords,
+ visibility = visibility,
+ )
+
+ remote_file(
+ name = out,
+ out = out,
+ url = url,
+ sha1 = sha1,
+ visibility = []
+ )