A Gradle plugin for Minestom projects with a clean stomrun {} DSL.
What it does:
- Adds required repositories for Minestom and optional GitHub dependencies
- Injects Minestom automatically into
implementation - Creates a
runStomtask to run your server quickly
buildscript {
repositories {
maven(url = "https://jitpack.io")
}
dependencies {
classpath("com.github.bed-dev:stomrun:1.0.0")
}
}
apply(plugin = "codes.bed.stomrun")buildscript {
repositories {
maven { url = uri('https://jitpack.io') }
}
dependencies {
classpath 'com.github.bed-dev:stomrun:1.0.0'
}
}
apply plugin: 'codes.bed.stomrun'If JitPack is temporarily unavailable, this plugin is planned to be available on Maven Central soon.
stomrun {
version {
minecraft.set("1.21.11")
minestom.set("latest")
}
libraries {
mavenCentral("io.github.togar2", "MinestomPvP", "2025.12.29-1.21.11")
implementation("net.kyori:adventure-api:4.17.0")
github("Revxyrsal", "Lamp")
}
runServer {
memory.set("2G")
mainClass.set("com.example.server.Main")
jvmArg("-Dminestom.debug=true")
args("nogui")
}
}stomrun {
version {
minecraft = '1.21.11'
minestom = 'latest'
}
libraries {
mavenCentral('io.github.togar2', 'MinestomPvP', '2025.12.29-1.21.11')
implementation('net.kyori:adventure-api:4.17.0')
github('Revxyrsal', 'Lamp')
}
runServer {
memory = '2G'
mainClass = 'com.example.server.Main'
jvmArg('-Dminestom.debug=true')
args('nogui')
}
}minecraftdefault:1.21.11minestomdefault:latest- If
minestomislatest,minecraftis used as Minestom version
github(owner, repo)->com.github.<owner>:<repo>:master-SNAPSHOTgithub(owner, repo, tag)->com.github.<owner>:<repo>:<tag>implementation("group:artifact:version")implementation(group, artifact, version)mavenCentral(group, artifact, version)
Repository behavior:
- Always adds Maven Central and Minestom snapshots
- Adds JitPack only when
github(...)is used
memorydefault:2G(used for-Xmsand-Xmx)mainClassdefault:com.example.server.MainjvmArg("...")appends JVM flagsargs("...")appends program argsworkingDirectorydefault: project directory
.\gradlew.bat runStom