A blank template for Mindustry mods with an existing Gradle configuration to compile and dex-ify, and Github Actions to automatically do both and upload the artifacts.
JDK 8.
Task dexify
requires d8
from Android build-tools
> 28.0.1
.
Plain Jar is for JVMs (desktop).
Dexed Jar is for for JVMs (desktop) and ARTs (Android).
These two are separate in order to decrease size of mod download.
Plain Jar: gradlew build
Dexify Plain Jar: gradlew dexify
Build Plain & Dexify Jar: gradlew buildDex
Plain Jar: ./gradlew build
Dexify Plain Jar: ./gradlew dexify
Build Plain & Dexify Jar: ./gradlew buildDex
- Rename directories in
src/
to avoid collisions with other mods that didn't. - Change
pGroup
ingradle.properties
to match up with the new directories. - Update
main
inassets/mod.json
to line up with renamed directories. - Refer to Compiling.