I’m working on an application that has a lot of dependencies. We’d like to distribute a packaged runnable jar that includes all the necessary dependency code. To do that we’ve been using the shadow plugin plugin.
However, our shadow jar has become very large due to our many dependencies. Some of these dependencies we’re only using a very small fraction of the code included in the dependency and we’d to minimize our file size by removing unreachable code from dependencies we include. This is something that maven-shade can do, and I was hoping that shadow could do it as well. It seems like it’s a requested but unimplemented feature.
Does anyone have suggestions for a different plugin to use for making a slimmer all in one jar?