2022-02-27 23:38:55 +01:00
|
|
|
val paperVersion = "1.17.1-R0.1-SNAPSHOT" // Needed because we do not support Java 17 yet
|
|
|
|
val viaVersion = "4.0.0"
|
2022-03-20 02:46:30 +01:00
|
|
|
val adaptersVersion = "1.4-SNAPSHOT"
|
2022-04-08 01:22:46 +02:00
|
|
|
val commodoreVersion = "1.13"
|
2022-02-27 23:38:55 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api(projects.core)
|
|
|
|
|
|
|
|
implementation("org.geysermc.geyser.adapters", "spigot-all", adaptersVersion)
|
2022-04-08 01:22:46 +02:00
|
|
|
|
|
|
|
implementation("me.lucko", "commodore", commodoreVersion)
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
platformRelocate("it.unimi.dsi.fastutil")
|
|
|
|
platformRelocate("com.fasterxml.jackson")
|
|
|
|
platformRelocate("net.kyori")
|
|
|
|
platformRelocate("org.objectweb.asm")
|
2022-04-08 01:22:46 +02:00
|
|
|
platformRelocate("me.lucko.commodore")
|
2022-02-27 23:38:55 +01:00
|
|
|
|
|
|
|
// These dependencies are already present on the platform
|
|
|
|
provided("io.papermc.paper", "paper-api", paperVersion)
|
2022-04-08 01:22:46 +02:00
|
|
|
provided("io.papermc.paper", "paper-mojangapi", paperVersion)
|
2022-02-27 23:38:55 +01:00
|
|
|
provided("com.viaversion", "viaversion", viaVersion)
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass.set("org.geysermc.geyser.platform.spigot.GeyserSpigotMain")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|
|
|
archiveBaseName.set("Geyser-Spigot")
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
exclude(dependency("com.google.*:.*"))
|
|
|
|
exclude(dependency("org.yaml:.*"))
|
|
|
|
|
|
|
|
// We cannot shade Netty, or else native libraries will not load
|
|
|
|
// Needed because older Spigot builds do not provide the haproxy module
|
|
|
|
exclude(dependency("io.netty:netty-transport-native-epoll:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-transport-native-unix-common:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-transport-native-kqueue:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-handler:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-common:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-buffer:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-resolver:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-transport:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-codec:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-codec-dns:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-resolver-dns:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-resolver-dns-native-macos:.*"))
|
2022-04-08 01:22:46 +02:00
|
|
|
|
|
|
|
// Commodore includes Brigadier
|
|
|
|
exclude(dependency("com.mojang:.*"))
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
}
|