Skip to content

Reduce size of Kilt JAR by around 20MB - #974

Draft
a6tumn wants to merge 1 commit into
KiltMC:version/1.21.1from
a6tumn:porting-lib-fat-jar
Draft

Reduce size of Kilt JAR by around 20MB#974
a6tumn wants to merge 1 commit into
KiltMC:version/1.21.1from
a6tumn:porting-lib-fat-jar

Conversation

@a6tumn

@a6tumn a6tumn commented Aug 8, 2026

Copy link
Copy Markdown

Warning

Explanation

  • Many of Porting Lib's modules include their own dependencies, and Loom does not have a method of deduplicating second-level nested dependencies as far as I know. This can lead to less than optimal file sizes for any mod that includes a lot of modules.

  • I tested the functionality by building Porting Lib locally, and Kilt locally using the setup from this PR. I was able to get a Kilt build to around 16.5MB in size that worked flawlessly with the latest Twilight Forest NeoForge build. I have also tested building Twilight Forest on Fabric with a similar Porting Lib setup and was able to reduce the size of the built JAR by around 12MB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant