Jump to content

[1.10.2] Exporting a library with the mod's jar


JimiIT92
 Share

Recommended Posts

In my mod i use an external library (Json.simple). Now, in order to use the mod you need to add the Json.simple jar inside the mod folder too, but what i want is to have a single jar file that contains both the mod and the library. Is this possible? And if so how can i tell gradle to export the library too into the generated jar file?

Don't blame me if i always ask for your help. I just want to learn to be better :)

Link to comment
Share on other sites

I know that putting the library into the mod folder works, but this is exactly what i want to know if can be avoided. I want to know if i can put just 1 jar file into the mod folder that will load both mod and library to avoid some errors from users (they could forget about the second jar)

Don't blame me if i always ask for your help. I just want to learn to be better :)

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
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.

 Share



×
×
  • Create New...

Important Information

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