Skip to main content

Publish to a Maven repository

This example project configuration shows how to publish your mod to a Maven repository.

build.gradle
tableau {
mod {
// Mod information
modid = 'modid' // Use your own modid here.
group = 'com.example' // Use your own group here.
minecraftVersion = '1.21.3' // Or any other minecraft version.
publisher = 'SomePublisher' // Use your own name here.
url = 'https://github.com/someorg/modid' // Use your own URL here.
}

maven {
publishLocally()
pom {
usingGit()
}
}
}
tip

If you want to publish to a different repository see the Maven Publishing Guide documentation.

note

You can find a full example of this project configuration in the Maven Publishing Example on GitHub.