Posted November 21, 20204 yr Hello, I'm new in creating mods and using intellij idea. I saw a few tutorials about this topic, but if I use a dependency and build mod, the dependency doesn't want to compile into final jar. My build.gradle: dependencies { minecraft 'net.minecraftforge:forge:1.16.3-34.1.0' compile 'edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT' compile 'edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT' } And my build method: But result is without compiled dependency. Where is a problem? Thanks for replying.
November 21, 20204 yr Libraries dont just automatically get built into the jar of each project that uses them. That would be an immense waste of space/bandwidth. Not to mention the potentially legalities of it. You wouldn't want to ship all of Minecraft in your Jar just because you use it as a dependency. However if you DO want to shade a jar in, you can. There are tools such as the shadow plugin for gradle that'll let you choose which libraries to ship. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
November 24, 20204 yr Author Ok, so what I should do, if I want to use external library, which isn't contains in minecraft (in forge).
November 24, 20204 yr Author Oh sorry, I though if I use gradle shade, I put these jars into my jar but with minecraft.
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.