Jump to content

Recommended Posts

Posted

Hello guys :)

So i am working on a bigger plugin/mod currently that i want to be compatible with multiple API's like Bukkit, Sponge and now Forge.
This is currently built with gradle and the johnrengelman.shadow plugin to make an universal jar. Here is the project.

With the last commit in that branch i tried to add the Forge Implementation but when i am trying to build it i get this issue that i don't know how to fix:

> Configure project :BlueMapForge
New Dep: net.minecraftforge:forge:1.14.4-28.1.0_mapped_stable_58

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not find net.minecraftforge:forge:1.14.4-28.1.0_mapped_stable_58.
...

Here is the full error and gradle scan: https://gradle.com/s/7z2is226v6v3q

I am currently using gradle 5.6.4 with this built but i have also tried gradle 4.9 which gets me exactly the same error ^^

Posted

So if no one knows this, does somebody has an idea where i might get more help with this issue?
Or do you think this is just not feasible like this?

Posted

You should not be shading all of minecraft/its dependencies into your jar file...

You could in theory make a single jar that works on all systems if you keep everything abstracted out.

But honestly it's better/easier to just build separate jars.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

No, you misunderstood @LexManos :D
I don't want to shade forge or minecraft, i am shading only libs that i am using myself ... i want to exclude forge/minecraft from the shading like i already do with bukkit and sponge.
I just want forge to compile with it, while using the shade-plugin and having the forge implementation/dependency in a gradle sub-project. 
Dynmap does the same thing, but i can't get it to work for my project.

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.