Skip to content

Conversation

@simuons
Copy link
Collaborator

@simuons simuons commented Jan 17, 2023

Remove zipper from common attributes, singlejar is already there and can generate jars with resources.

Looking at bazel source code singlejar utility is used for:

Motivation:

  • use precompiled binaries ie singlejar comes precompiled via remote_java_tools while zipper is built from sources (at least in remote execution)
  • use single tool to accomplish same goal

Remove zipper from common attributes

singlejar is already there and can generate jars with resources

Looking at bazel source code `singlejar` utility is used for:
* [pack_sources](https://github.com/bazelbuild/bazel/blob/455454a56e961affb041a1d4a9214f7f313a05aa/src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java#L198)
* [resources_jar](https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/rules/java/ResourceJarActionBuilder.java#L123)

Motivation:

* use precompiled binaries ie singlejar comes precompiled via remote_java_tools while zipper is built from sources (at least in remote execution)
* use single tool to accomplish same goal
@simuons simuons requested a review from liucijus as a code owner January 17, 2023 08:19
@liucijus liucijus merged commit cb950f5 into bazel-contrib:master Jan 20, 2023
@simuons simuons deleted the replace-zipper-with-singlejar branch January 23, 2023 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants