Adding remote_jar bucklet
Change-Id: I925c3b56158709195e4b5e1278de325cac013090
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 = []
+ )