Publish to a Maven repository
This example project configuration shows how to publish your mod to a Maven repository.
- Groovy
- Kotlin
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()
}
}
}
build.gradle.kts
tableau {
mod {
// Mod information
modid.set("modid") // Use your own modid here.
group.set("com.example") // Use your own group here.
minecraftVersion.set("1.21.3") // Or any other minecraft version.
publisher.set("SomePublisher") // Use your own name here.
url.set("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.