How to setup your project using SpongeGradle?

Hello,

I’m currently trying create a plugin but I can’t seem to get passed the project setup. I’ve been following the SpongeDocs but I don’t exactly get what “SpongeGradle” is and how to add it to my project. I would much appreciate it if someone could help me further.

Additional information:
IDE: Eclipse IDE for Java Developers [Version: Mars.2 Release (4.5.2)]
OS: OS X El Capitan
Build System: Gradle

Thank you in advance,
Faegy - Someone trying to join the Sponge Community.

PS: My apologies for my possibly bad English, French being my primary language.

Required info found on the official Gradle plugin portal. This link should be added to the SpongeGradle “readme”.

Generally the page on the docs explain what you need to add to your build script, so everything mentioned on the Gradle plugin portal is also added there. The SpongeGradle README is currently not up-to-date but will be updated soon.

Managed anyway to create my plugin. Thanks for all your hard work Sponge Developers! :heart:

2 Likes

To easily setup a plugin working environment:

  1. Create a new Gradle-Project in your IDE
  2. Open your build.gradle and add the SpongeAPI-dependency
  3. Also follow the instructions here to setup a test server that can be started directly from the IDE via the “Run”-button