Skip to content
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

Use maven-shade-plugin to shrink size of the clover.jar #102

Closed
marek-parfianowicz opened this issue Dec 17, 2019 · 2 comments
Closed

Use maven-shade-plugin to shrink size of the clover.jar #102

marek-parfianowicz opened this issue Dec 17, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request resolved
Milestone

Comments

@marek-parfianowicz
Copy link
Member

marek-parfianowicz commented Dec 17, 2019

Current JAR has 15MB, it’s quite a lot, especially if it is being bundled in CI (e.g. Bamboo).

Use maven-shade-plugin (alternative: Proguard) to remove unused classes from the JAR. Watch out for indirect references (e.g. reflections, template languages like Velocity).

Do not obfuscate the code.

@marek-parfianowicz
Copy link
Member Author

@marek-parfianowicz marek-parfianowicz added this to the 4.5.0 milestone Dec 17, 2019
@marek-parfianowicz marek-parfianowicz modified the milestones: 4.5.0, 4.6.0 Sep 7, 2023
@marek-parfianowicz marek-parfianowicz added the enhancement New feature or request label Mar 14, 2024
@marek-parfianowicz marek-parfianowicz modified the milestones: 4.6.0, 4.7.0 Mar 23, 2024
@marek-parfianowicz marek-parfianowicz modified the milestones: 5.1.0, 5.0.0 Jul 5, 2024
@marek-parfianowicz marek-parfianowicz changed the title Use Proguard to shrink size of the clover.jar Use maven-shade-plugin to shrink size of the clover.jar Jul 5, 2024
@marek-parfianowicz marek-parfianowicz self-assigned this Jul 5, 2024
@marek-parfianowicz
Copy link
Member Author

Changes:

  • repacked third party libraries by maven-shade-plugin instead of jarjar
  • got rid of most of the clover-xyz libraries, now third party libraries are direct dependencies
  • reduced size of clover.jar from ~15MB to ~8MB
  • size of clover-runtime.jar did not change (minimization is disabled as it was cutting classes from Cajo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request resolved
Projects
None yet
Development

No branches or pull requests

1 participant