You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bazel-discuss
Hey everyone,
I am trying to deal with a project that uses two versions of a java maven package in different parts of the code. One of the jars is "shaded" under a different namespace using the following maven plugin:
I would like to be able to import a jar (e.g. kafka-client) and move it from it's original namespace (e.g. kafka.*) to some other namespace (e.g. new_pkg_name.kafka.*). Is it possible to do such a thing in bazel?
Thanks,
wt
Han-Wen Nienhuys
unread,
Nov 6, 2015, 3:05:36 AM11/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Warren Turkal, bazel-discuss
the link you describe says this works by moving around files in the
.jar and rewriting the byte code. If you have a command line utility
that does this, you could invoke it from a genrule.
I will probably try to write up some sky lark rules around this functionality. I'll prototype with jar jar links. I see that asm (the magic lib that jar jar uses) is already included in the third party libs in bazel. Maybe I'll see if I can integrate this functionality in a better way.