Jump to content

How to add external libraries?


Frontear

Recommended Posts

I've already modified the build.gradle to compile org.reflections, which can be found here. The problem is while the dev environment can build it, it will not work after using `gradle build`. I've tried running `gradle buildDependents` as well, and nothing will solve the issue. How can I correctly compile an external library into my mod?

 

Edit: What I mean to say is that the official Minecraft Client will not run the mod, throwing a NoClassDefFound, meaning org.reflections isn't compiling with my mod. How can I make it so?

Edited by Frontear

I am a human and this action was performed manually. Please contact Frontear if you have any questions or concerns.

Link to comment
Share on other sites

I have done that, correct? Inside the build.gradle, in the `dependencies` area, I've added 

compile group: 'org.reflections', name: 'reflections', version: '0.9.11'

It works in the dev env, but doesn't compile alongside the Java Jar.

I am a human and this action was performed manually. Please contact Frontear if you have any questions or concerns.

Link to comment
Share on other sites

The documentation isn't clear about how to implement them. It's only telling me the format, the maven support, and some other stuff about modifying the Manifest INF. How exactly am I supposed to accept this? Am I supposed to modify files outside of the build.gradle?

I am a human and this action was performed manually. Please contact Frontear if you have any questions or concerns.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.