An intelligent Gradle plugin used to develop plugins for Spigot, Bungeecord and NukkitX.
-
Description file generation:
plugin.yml
and/orbungee.yml
-
Main class detection
-
Shortcuts for repository and dependency
plugins {
id 'java'
id 'io.typst.spigradle' version '3.0.0'
}
group 'org.sample'
version '1.0.0'
repositories {
mavenCentral()
spigotmc()
}
dependencies {
compileOnly spigot('1.21.8')
}
spigot {
depends 'ProtocolLib'
softDepends 'SomeLibrary'
commands {
create('mycmd') {
aliases 'cmd'
}
}
}
- Plugins
- Requirements
- Repositories
- Dependencies
- See also
- Supporters
- The Spigot plugin
- The Bungeecord plugin
- The Nukkit plugin
- Sample
Groovy DSL
plugins {
id 'java'
id 'io.typst.spigradle' version '3.0.0'
}
repositories {
mavenCentral()
spigotmc()
}
dependencies {
compileOnly spigot('1.21.8')
}
spigot {
depends 'ProtocolLib'
softDepends 'SomeLibrary'
commands {
create('mycmd') {
aliases 'cmd'
}
}
// if you want to exclude all [spigot.libraries]:
// `excludeLibraries = ['*']`
}
Kotlin DSL
import io.typst.spigradle.spigot.*
plugins {
kotlin("jvm") version "2.1.20"
id("io.typst.spigradle") version "3.0.0"
}
repositories {
mavenCentral()
spigotmc()
}
dependencies {
implementation(kotlin("stdlib"))
compileOnly(spigot("1.21.8"))
}
spigot {
depends = listOf("ProtocolLib")
softDepends = listOf("SomeLibrary")
commands {
create("mycmd") {
aliases = listOf("cmd")
}
}
// if you want to exclude all [spigot.libraries]:
// `excludeLibraries = listOf("*")`
}
Groovy Legacy
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'kr.entree:spigradle:3.0.0'
}
}
apply plugin: 'io.typst.spigradle'
Kotlin Legacy
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("kr.entree:spigradle:3.0.0")
}
}
apply(plugin = "io.typst.spigradle")
Groovy DSL
plugins {
id 'java'
id 'io.typst.spigradle.bungee' version '3.0.0'
}
repositories {
mavenCentral()
}
dependencies {
compileOnly bungeecord('1.15')
}
Kotlin DSL
plugins {
kotlin("jvm") version "2.1.20"
id("io.typst.spigradle.bungee") version "3.0.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
compileOnly(bungeecord("1.15"))
}
Groovy Legacy
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'kr.entree:spigradle:3.0.0'
}
}
apply plugin: 'io.typst.spigradle.bungee'
Kotlin Legacy
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("kr.entree:spigradle:3.0.0")
}
}
apply(plugin = "io.typst.spigradle.bungee")
Groovy DSL
plugins {
id 'java'
id 'io.typst.spigradle.nukkit' version '3.0.0'
}
repositories {
mavenCentral()
}
dependencies {
compileOnly nukkit('1.0')
}
Kotlin DSL
plugins {
kotlin("jvm") version "2.1.20"
id("io.typst.spigradle.nukkit") version "3.0.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
compileOnly(bungeecord("1.15"))
}
Groovy Legacy
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'kr.entree:spigradle:3.0.0'
}
}
apply plugin: 'io.typst.spigradle.nukkit'
Kotlin Legacy
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("kr.entree:spigradle:3.0.0")
}
}
apply(plugin = "io.typst.spigradle.nukkit")
All the plugins require Gradle 8.0+, the latest version is recommended.
To update your gradle wrapper:
gradlew wrapper --gradle-version 8.14.3 --distribution-type all
Name | URL | Relations | Aliases |
---|---|---|---|
spigotmc() | https://hub.spigotmc.org/nexus/content/repositories/snapshots/ | spigot() | |
sonaytype() | https://oss.sonatype.org/content/repositories/snapshots/ | bungeecord() | |
papermc() | https://papermc.io/repo/repository/maven-public/ | paper() | |
jitpack() | https://jitpack.io | Vault | vault() |
protocolLib() | https://repo.dmulloy2.net/nexus/repository/public/ | ||
enginehub() | https://maven.enginehub.org/repo/ | worldguard, worldedit, commandhelper... | |
codemc() | https://repo.codemc.org/repository/maven-public/ | BStats | bStats() |
enderZone() | https://ci.ender.zone/plugin/repository/everything/ | EssentialsX | essentialsX() |
frostcast() | https://ci.frostcast.net/plugin/repository/everything | BanManager | banManager() |
nukkitX() | https://repo.nukkitx.com/maven-snapshots | NukkitX |
repositories {
engienhub()
}
import io.typst.spigradle.kotlin.*
repositories {
enginehub()
}
Name | Signature | Default version | Official repository |
---|---|---|---|
spigot(version) | org.spigotmc:spigot-api:$version | 1.21.8-R0.1-SNAPSHOT | spigotmc() |
spigotAll() | org.spigotmc:spigot:$version | 1.21.8-R0.1-SNAPSHOT | spigotmc() |
bungeecord() | net.md-5:bungeecord-api:$version | 1.21-R0.4-SNAPSHOT | spigotmc() |
minecraftServer() | org.spigotmc:minecraft-server:$version | 1.21.8-SNAPSHOT | mavenLocal(), BuildTools |
paper() | com.destroystokyo.paper:paper-api:$version | 1.21.8-R0.1-SNAPSHOT | papermc() |
bukkit() | org.bukkit:bukkit:$version | 1.21.8-R0.1-SNAPSHOT | mavenLocal(), BuildTools |
craftbukkit() | org.bukkit:craftbukkit:$version | 1.21.8-R0.1-SNAPSHOT | mavenLocal(), BuildTools |
lombok() | org.projectlombok:lombok:$version | 1.18.38 | mavenCentral() |
spigradle() | kr.entree:spigradle:$version | 3.0.0 | mavenCentral() |
protocolLib() | com.comphenix.protocol:ProtocolLib:$version | 5.3.0 | protocolLib() |
vault() | com.github.MilkBowl:VaultAPI:$version | 1.7 | jitpack() |
vaultAll() | com.github.MilkBowl:Vault:$version | 1.7.3 | jitpack() |
luckPerms() | me.lucko.luckperms:luckperms-api:$version | 5.5.9 | mavenCentral() |
worldedit() | com.sk89q.worldedit:worldedit-bukkit:$version | 7.3.15 | enginehub() |
worldguard() | com.sk89q.worldguard:worldguard-bukkit:$version | 7.0.14 | enginehub() |
essentialsX() | net.ess3:EssentialsX:$version | 2.21.1 | enderZone() |
banManager() | me.confuser.banmanager:BanManagerBukkit:$version | 7.9.0-SNAPSHOT | frostcast() |
commandhelper() | com.sk89q:commandhelper:$version | 3.3.5-SNAPSHOT | enginehub() |
bStats() | org.bstats:bstats-bukkit:$version | 3.0.2 | codemc() |
nukkit | cn.nukkit:nukkit:$version | 2.0.0-SNAPSHOT | nukkitX() |
dependencies {
compileOnly spigot("1.21.8") // or just spigot()
}
import io.typst.spigradle.spigot.*
dependencies {
compileOnly(spigot("1.21.8")) // or just spigot()
}