YatopiaMC / Yatopia

The Most Powerful and Feature Rich Minecraft Server Software!
https://yatopiamc.org/
464 stars 79 forks source link

Fix Log4j warning #482

Closed snoopdoooggyttv closed 3 years ago

snoopdoooggyttv commented 3 years ago

Hi guy!

I work very hard on learn patch so that I can fix #477 Jerry say "how..." and it inspired myself took long time though was fun 😁

hope it useful bros i'll keep learning thank you

TheDGOfficial commented 3 years ago

The Log4J already has META-INF/versions/9/StackLocater.class, and this included in the JAR (and using it solves the warning). The true error can be fixed by adding Multi-Release: true to MANIFEST.MF of shaded fat JAR (paperclip one in the cached folder, not the paperclip itself), I tested it. Unfortunately this requires gradle build script modification and can't be fixed through a startup script (I tested with -Djdk.util.jar.enableMultiRelease=force) because that option only applies to the JAR after the jar argument, which is the paperclip jar and already has Multi-Release: true.

SurvivorsDev commented 3 years ago

Thank you for your interest.