-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minimizeJar #115
Comments
This feature is not currently implemented. |
Thanks for your feedback. |
Gonna reopen this to track possible future enhancements. |
👍 |
I have a somewhat related question, which may be feasible with current exclude capabilities, and I just don't know how to accomplish it. We know which packages of guava we are using and want to include and shade those with our jar (ie: base, collect, primitives) . In the interest of keeping the jar small we would like to globally exclude the other com.google.common packages entirely. I can exclude them from the shading easily enough
However, they are then left unshaded in the jar, and I'm having trouble figuring out how to globally exclude them. It looks to me like the dependency exclusion is all or nothing of a maven group:name so I can't do a partial guava exclusion ie So far I haven't been able to get a file exclusion regex pattern to match and exclude them. Do you have any advice for how we might be able to accomplish this with the shadowJar? We used to used fatjar plugin and an ant jarjar task to do this, but the old way won't work since a gradle upgrade. |
Seems to be a duplicate of #198 |
Yup. Closing this in favor of tracking enhancements on #198 |
Hi @johnrengelman ,
I was wondering if shadow has also a minimizeJar like feature like the maven-shade-plugin: http://maven.apache.org/plugins/maven-shade-plugin/examples/includes-excludes.html
Best regards,
Peti
The text was updated successfully, but these errors were encountered: