Mark
Mark

Reputation: 1554

Java Maven project minify the build

I am working on a multi module Maven project. We have created a project which builds an uber jar. The unpacked jar is about 60mb which is a problem for our client. Are there any tools we can use to remove unused .class files within the dependencies when the build is completed?

Another option would be if we could analyse what .class files are loaded when running and produce a list of these and thus remove others from the build manually.

cheers,

Upvotes: 0

Views: 303

Answers (1)

David
David

Reputation: 20063

I'm not sure if it could remove classes as such, but proguard has some awesome results in terms of minifying class sizes. You can see from the link it reduces the Ant module by 90%

Upvotes: 2

Related Questions