Version comes from git tags. Tag v0.20.0 → version 0.20.0-1.21 in the JAR.
No tag? Falls back to mod_version in gradle.properties.
GitHub releases need a personal access token. Create one at github.com/settings/tokens with repo scope.
Add it to your global Gradle properties (NOT the project file):
# ~/.gradle/gradle.properties (Windows: C:\Users\YOU\.gradle\gradle.properties)
github.token=ghp_your_token_hereCreate docs/releases/<version>.md (e.g. docs/releases/0.20.3.md) —
gradle reads it as the GitHub release body based on mod_version from
gradle.properties. Falls back to latest.md if no versioned file found.
git tag v0.20.0
git push origin v0.20.0gradlew buildOutput JAR: build/libs/unionclef-0.20.0-1.21.jar
gradlew githubReleaseThis uploads the JAR to github.com/3ndetz/unionclef/releases with auto-generated release notes.
git tag v0.20.0 && git push origin v0.20.0
gradlew build githubReleaseThe release JAR includes everything needed to run:
- UnionClef (altoclef) classes
- Baritone classes (remapped to intermediary)
- Tungsten classes
- Nether pathfinder
- Jackson JSON
- Py4J
- MixinExtras
Users just drop the JAR into their mods/ folder. No separate baritone install needed.
Edit mod_version in gradle.properties for the fallback version. But the actual release version always comes from the git tag.