This repository is a minimal template for building a Minestom-based Minecraft server plugin/project using Gradle.
- Project layout: Java sources are under
src/main/javaand resources undersrc/main/resources. - Build: Gradle (Kotlin DSL) with an included
build-logiccomposite.
Note: Renaming the Gradle project only changes the Gradle project identifier. If you want to fully customize package names, artifact IDs, or other identifiers, you should:
- Update Java package names under
src/main/java. - Update any references to the old project name in configuration or documentation.
- Update build metadata in
build.gradle.ktsif you want a different artifact name or group.
Build the project using the wrapper included in the repository:
On Windows PowerShell:
./gradlew.bat shadowjarOn Unix/macOS:
./gradlew shadowJarThe shaded/all jar (if configured) will be available in build/libs/ after a successful build.
- Clone this repository.
- Rename the Gradle project (see "Templating / Renaming this project" above).
- Replace package names and update sources as needed.
- Update
build.gradle.ktsmetadata (group, version, artifact name) for your project. - Build and test.
If you run into build errors, run ./gradlew --stacktrace and inspect the output. This template uses Gradle Kotlin DSL and includes a local build-logic composite; ensure you do not remove or break that directory.