-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
!ImprovementA functional improvement or micro featureA functional improvement or micro featureStaleThis issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.
Milestone
Description
We use the shade plugin (called shadow in Gradle) to combine OTP with its dependencies into a single JAR. This includes all the classes in those dependencies, even ones that are not used by OTP. Shade has a <minimizeJar>true</minimizeJar> parameter which attempts to remove unused classes. Experiments indicate this will probably reduce the size of otp.jar by roughly half to around 20MB.
Unfortunately even though we are now explicitly assembling the Jersey application and its optional features instead of relying on autoscanning, there is still some code (at least in Grizzly) that imports classes by mysterious reflective means that minimizeJar doesn't detect.
Someday we should get this working because it will make our distribution half as big.
Metadata
Metadata
Assignees
Labels
!ImprovementA functional improvement or micro featureA functional improvement or micro featureStaleThis issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.