Example project to get started with Paper plugin development and publication.
This project includes a build.gradle.kts
configuration with useful tasks :
-
Running a local Paper Minecraft server :
runDevBundleServer
- Run a local Paper Minecraft server (source : https://github.com/jpenilla/run-task)buildPluginAndRunServer
- Run a local Paper Minecraft server with a new build of the plugin
-
Plugin versioning :
incrementMajorVersion
- Update the first digit of the project versionincrementMinorVersion
- Update the second digit of the project versionincrementPatchVersion
- Update the last digit of the project version
This project also includes a release.yml file for publishing new versions of your plugin on CurseForge, Modrinth and GitHub. Secrets and variables must be defined in the repository Security settings :
- Secrets :
CURSEFORGE_TOKEN
- CurseForge API tokenMODRINTH_TOKEN
- Modrinth Personal access token (with Write projects and Create versions permissions)
- Variables :
CURSEFORGE_PROJECT_ID
- CurseForge public project IDMODRINTH_PROJECT_ID
- Modrinth public project ID
If your prefer to store all your variables in gradle.properties (NOT YOUR SECRETS), or store them in GitHub variables, do not forget to update release.yml in accordingly.