Skip to content

Commit

Permalink
Use release_archive to create java_tools' zips.
Browse files Browse the repository at this point in the history
Github part of bazelbuild#12615

Partial commit for third_party/*, see bazelbuild#12628.

Signed-off-by: Philipp Wollermann <[email protected]>
  • Loading branch information
comius authored and philwo committed Dec 7, 2020
1 parent 0a45334 commit b04477f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions third_party/java/jacoco/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# http://search.maven.org/remotecontent?filepath=org/jacoco/jacoco/0.8.3/jacoco-0.8.3.zip

load("//tools/distributions:distribution_rules.bzl", "distrib_jar_filegroup", "distrib_java_import")
load("//src:release_archive.bzl", "release_archive")

licenses(["reciprocal"]) # EPL 1.0 (Eclipse Public License)

Expand All @@ -18,17 +19,15 @@ filegroup(
srcs = glob(["**"]),
)

genrule(
release_archive(
name = "jacoco_jars_zip",
srcs = glob(["*.jar"]) + ["LICENSE"] + [
"//third_party:asm",
"//third_party:asm-commons",
"//third_party:asm-tree",
],
outs = ["jacoco_jars.zip"],
cmd = "$(location //src:zip_files) third_party/java/jacoco $@ $(SRCS)",
output_to_bindir = 1,
tools = ["//src:zip_files"],
package_dir = "java_tools/third_party/java/jacoco",
visibility = ["//visibility:public"],
)

filegroup(
Expand Down
8 changes: 4 additions & 4 deletions third_party/java/proguard/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
licenses(["restricted"]) # GNU GPL v2

load("//src:release_archive.bzl", "release_archive")

filegroup(
name = "srcs",
srcs = glob(["**"]),
Expand All @@ -19,14 +21,12 @@ filegroup(
visibility = ["//src:__pkg__"],
)

genrule(
release_archive(
name = "proguard_zip",
srcs = [
"proguard5.3.3/docs/GPL.html",
"proguard5.3.3/lib/proguard.jar",
],
outs = ["proguard.zip"],
cmd = "$(location //src:zip_files) third_party/java/proguard $@ $(SRCS)",
tools = ["//src:zip_files"],
package_dir = "java_tools/third_party/java/proguard",
visibility = ["//src:__pkg__"],
)

0 comments on commit b04477f

Please sign in to comment.