Hi everyone!
I just introduced javax.json as a dependency to my project, and I'm having mixed success getting the compiled jar to work.
I've managed to get the dependency working with Forge 1.7.10-10.13.4.1614-1.7.10 by configuring Gradle to compile the dependency into the jar:
This works (but I'd still be interested on feedback as to whether this is the correct approach). However, when I try to do the same thing with Forge 1.8.9-11.15.1.1722, then I have the following problems:
* When I build the project with the dependencies declared in the "embed" section, I get the following error from gradle: "java.util.zip.ZipException: duplicate entry: javax/json/Json.class".
* When I change the "embed" section to "compile" so that the dependency is not added to the jar, then I get a class not found error when I try to load the jar into minecraft.
I am really confused as to what's going on. If the javax.json dependency is already being build into the jar by Forge Gradle, then why is the class missing when I try to run the mod in minecraft?
I thought maybe there might be a version mismatch between the javax.json that I'm using and what I assume Forge Gradle is adding to the jar, but I don't know how to determine if that's the case.
Please help. I've exhausted my limited knowledge!
Thanks in advance,
- Chekote