I will try that, however I just switched over to maven and it worked fine. Should I switch back? Is there a major difference between maven and gradle
Gradle is recommended by Forge, so if you need to develop a plugin which uses a Forge plugin as a dependency, it’s better to use Forge. There is also a lot of support for Gradle on the Sponge forums, and Gradle is more flexible because you can execute code using it, for example automatic version control.
I have this exact same problem, except settings>maven doesn’t exist and no artifacts appear at all
Becauae the artifacts dont appear you have to manually import dependancies in the pom.xml. This was my issue, so this is what I got…
https://github.com/Synapz1/AdminEssentials-Sponge
Copy ans paste it, turn on auto importing and it should import correctly.
I’m using gradle not maven, so I need a proper build.gradle instead of a proper pom.xml.
Have you had a look at the docs? This should help:
https://docs.spongepowered.org/en/plugin/workspace/dependencies.html
@zml helped me resolve this on #spongedev. Turns out intellij’s auto-generated code for hradle was trying to build it as 1.5 (yes, 1.5) even though I was using JDK 1.8 and sponge required 1.6.