Skip to content

TealCube/simple-sponge-plugin-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for Sponge Plugins

A template made for simple Sponge plugins. Uses Gradle.

Includes a source templating system.

Usage

Base Template

  • 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

Templating System

  • 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

Build

CLI

  • 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.

IntelliJ IDEA

  • 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

Eclipse

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages