Automated Modrinth publication - Legacy-Fabric/fabric-example-mod GitHub Wiki
The minotaur gradle plugin is a tool for deploying build artifacts to Modrinth.
For more info see https://github.com/modrinth/minotaur#readme
Usage example
// build.gradle
plugins {
id "com.modrinth.minotaur" version "2.+"
}
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "my-mod"
versionNumber = "${project.mod_version}"
versionName = "my-mod v${project.mod_version}"
versionType = "release"
uploadFile = remapJar
gameVersions = ["1.8.9"]
loaders = ["fabric"]
dependencies {
required.project "legacy-fabric-api"
}
}
To publish to Modrinth run:
./gradlew build modrinth