Two ways of doing it:
-
SpongeStart Gradle plugin works out of the box, it’s really handy! I prefer this over method 2.
-
Clone SpongeForge or -Vanilla as described in the README on GitHub, also do the
setupDecompWorkspace
. Then clone your plugin into the Sponge folder. Import the Sponge project in IntelliJ, and import your plugin as a module. Set that new module as a dependency of ‘Sponge java_6’ or something like that(I should do some screenshots). Then executegradle genIntelliJ
. A new run configuration appeared. Edit it to have that ‘sponge java6’ as module. Then you can run the configuration and the server should start with your plugin.