The jar without excluding some dependencies in shadowJar is a little bit less #897
Closed
2 tasks done
Labels
bug
Confirmed bugs or reports that are very likely to be bugs.
low-priority
Low priority to be addressed.
What happened?
build.gradle
in the shadowJar block./gradlew shadowJar
and rename the output jar to anything different so it won't replaced with the new oneminimize
block that hasexlcude
(inside it) with onlyminimize()
./gradlew shadowJar
once againYou will notice the old jar size is (26.2 MB) while the new one is (21 MB)
and it is supposed to be the exact opposite, excluding some dependencies should save some space, not making the jar file size a little bit bigger, I might be wrong (I'm not sure if this issue from my side) or it might be a bug in the shadow jar or it could be that excluding some dependencies manually would disable the
minimize()
process provided by shadow jar and will only exclude what you want to excludeWhat the docs say:
In either case, it is worth the try, usually the jar file size should be as less as possible
Operating System
macOS
Relevant log output
Additional Information
Is this actually a launcher bug?
Code of Conduct
The text was updated successfully, but these errors were encountered: