I'm building a project that depends on other projects. Originally, this project used maven. I am using maven_jar successfully to get dependencies. However, there are some dependencies that are transitively used by two immediate dependencies and they cannot agree on the same version of this share dependence. (aws-sdk wants some versions of the apache http library and jackson library, and google play wants different versions of the same libraries.)
In maven, I successfully was using maven-shade-plugin to relocate one copy of the shared dependence, so that I could effectively have two different versions in my final environment. (This is a common reason to use shading.)
I'm unclear what the current best recommended way to accomplish this in Bazel. I found some references in 2015, but I wonder if there has been any further work on this topic?
I tried to look carefully through the Java Rules page:
https://docs.bazel.build/versions/master/be/java.html
but couldn't find anything about shading or relocation.
Any guidance appreciated! (That isn't "go modify aws-sdk or google play")
Thanks, Sean
--
You received this message because you are subscribed to a topic in the Google Groups "bazel-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bazel-discuss/WStUENkLJzo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b5ef253a-f059-414e-8d73-efa69ad23568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b5ef253a-f059-414e-8d73-efa69ad23568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.