Started by
Marelo
on
Topic category: Troubleshooting, bugs, and solutions
Hi, i'm new at modding and, on a new project I'm doing, I run into a problem, so basically i would like to know how i could put a gradle dependency ( which is pulled from maven central repository ) into a final distribuition build of the mod ( the final .jar file ).
Edited by Marelo on Thu, 08/19/2021 - 14:11
You could use gradle shadow plugin
I found something about shadow gradle project on internet recently, but i don't know how I could add a Third-party api, and then shadow this API into the final jar.
My build.gradle looks like this
after wondering arroud I found a solution, just use shade from ForgeGradle, is similar to shadowGradle, but you have to put all your dependencies at lib folder, https://github.com/MinecraftForge/ForgeGradle/blob/FG_1.2/docs/user-gui…