Posted February 6, 20223 yr Hi, I am trying to include Reflections into my mod. I tried using shadowJar, but it seems whether or not I use it I face the same problem. When I debug runClient with IntelliJ, it just doesn't pick up on the dependency and I get a NoClassDefFoundError no matter what. If I build a jar using shadowJar and then copy it into the mods folder and launch Minecraft through the launcher, I get a different error but there is no NoClassDefFoundError indicating this is a problem with IntelliJ. How do I use external libraries with ForgeGradle and IntelliJ? Quote **DUPLICATED BY: https://forums.minecraftforge.net/topic/107092-1181-how-to-add-external-dependency-to-forgegradle/** Edited February 6, 20223 yr by Majd123mc
February 6, 20223 yr Author 1 hour ago, diesieben07 said: What for? If it really matters, I had an automatic registry system. Annotate the deferredregister field and it would be found and registered. Sure, it is innefficient but this should apply to any other library, right?
February 6, 20223 yr Author 1 hour ago, diesieben07 said: Forge already gives you access to this information. For additional libraries you need a workaround currently as far as I know, but I can't find it right now. Try asking on the Discord. For future readers, this is that post: https://forums.minecraftforge.net/topic/107092-1181-how-to-add-external-dependency-to-forgegradle/ Also, duplicated by it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.