-
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
Is it possible to specify the entry points for minimize configuration? #885
Comments
I wonder this as well. It will be extremely helpful for my use case as well, which is similar to yours. This is possible with Maven Shade's :
It seems that there is something similar in Gradle Shadow: #273, which is closed. Unfortunately, I am new and I can't understand. Perhaps, you can make sense of it? |
I have taken the time to try to understand the commit from superbobry in #273, following snippet will remove unused classes in my own project:
So far, I have just tested a simple setups for my project. This is still a good starting point. |
That PR added minimization possibility at all, including entrypoint support. PS: Changing the configuration of a task at execution time like in your snippet is generally a pretty bad idea and if you ever want to use configuration cache, it even is forbidden. |
Use Case: The final jar contains multiple classes
A
andB
from which the execution can start (these are the AWS lambda handlers).Question: Is it possible to configure minimizing so that it would clean everything except
A
,B
and their transitive dependencies?The text was updated successfully, but these errors were encountered: