A template made for simple Sponge plugins. Uses Gradle.
Includes a source templating system.
- Download/fork this repository.
- Make changes to build.gradle and settings.gradle as necessary
- Modify project files as necessary
- Make sure to change the package and class name of the
@Plugin
annotated class
- Make sure to change the package and class name of the
- Write Java exactly as normal, putting Ant-style tokens where desired, but in src/templates instead of src/main
- View src/templates/java/com/tealcube/minecraft/sponge/template/Version.java for example
- Open CLI of your choice in root project directory
- Run
gradlew.bat
if on Windows,./gradlew
if on *nix systems - ???
- Profit!
- Your plugin's files will be located in the
build/libs
directory.
- Your plugin's files will be located in the
- Open CLI of your choice in root project directory
- Run
gradlew.bat idea
if on Windows,./gradlew idea
if on *nix systems - ???
- Profit!
- Open IntelliJ and point it at the root project directory
- Open CLI of your choice in root project directory
- Run
gradlew.bat eclipse
if on Windows,./gradlew eclipse
if on *nix systems - ???
- Profit!
- Open Eclipse and point it at the root project directory