Skip to content

Automated Modrinth publication

Grayray edited this page Aug 12, 2023 · 1 revision

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