Posted July 26, 20169 yr Hi! I've written a mod that depends on an artifact in the Maven Repository, (specifically org.xerial:sqlite-jdbc). I've added a 'compile' line to the root dependencies block in my build.gradle file: dependencies { compile "org.xerial:sqlite-jdbc:3.8.11.2" } Upon running gradlew.bat --refresh-dependencies, the artifact is downloaded into a subfolder inside ~/.gradle/caches, and inside my development environment, everything works as expected. gradlew.bat build seems to execute successfully, but when I try to use the resulting jar in Minecraft, the sqlite-jdbc artifact is never downloaded, so the mod can't function. I'd appreciate any help you guys can give me.
July 27, 20169 yr The best way to do this is to shade the artifact into your JAR. I do this using the Shadow plugin here. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
July 27, 20169 yr Dev Time: Re-run 'eclipse' task, or whatever your IDE task is to update the classpath Run Time: Shade the dep in as stated above. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.