2024-02-25 18:57:04 +00:00
|
|
|
plugins {
|
|
|
|
id("geyser.publish-conventions")
|
|
|
|
}
|
|
|
|
|
2022-02-27 22:38:55 +00:00
|
|
|
dependencies {
|
|
|
|
api(projects.core)
|
2023-03-30 19:44:55 +00:00
|
|
|
api(libs.erosion.bukkit.common) {
|
|
|
|
isTransitive = false
|
|
|
|
}
|
2022-02-27 22:38:55 +00:00
|
|
|
|
2023-06-28 04:31:03 +00:00
|
|
|
implementation(variantOf(libs.adapters.spigot) {
|
|
|
|
classifier("all") // otherwise the unshaded jar is used without the shaded NMS implementations
|
|
|
|
})
|
2022-04-07 23:22:46 +00:00
|
|
|
|
2022-09-26 15:43:17 +00:00
|
|
|
implementation(libs.commodore)
|
2022-08-24 04:53:13 +00:00
|
|
|
|
2022-09-26 15:43:17 +00:00
|
|
|
implementation(libs.adventure.text.serializer.bungeecord)
|
2022-11-07 02:32:55 +00:00
|
|
|
|
2023-05-05 16:22:31 +00:00
|
|
|
compileOnly(libs.folia.api)
|
|
|
|
compileOnly(libs.paper.mojangapi)
|
|
|
|
|
|
|
|
implementation(libs.floodgate.spigot)
|
2022-02-27 22:38:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
platformRelocate("it.unimi.dsi.fastutil")
|
|
|
|
platformRelocate("com.fasterxml.jackson")
|
2022-08-24 13:41:24 +00:00
|
|
|
// Relocate net.kyori but exclude the component logger
|
2022-08-24 05:18:12 +00:00
|
|
|
platformRelocate("net.kyori", "net.kyori.adventure.text.logger.slf4j.ComponentLogger")
|
2022-02-27 22:38:55 +00:00
|
|
|
platformRelocate("org.objectweb.asm")
|
2022-04-07 23:22:46 +00:00
|
|
|
platformRelocate("me.lucko.commodore")
|
2023-06-07 18:22:36 +00:00
|
|
|
platformRelocate("org.yaml") // Broken as of 1.20
|
2022-02-27 22:38:55 +00:00
|
|
|
|
|
|
|
// These dependencies are already present on the platform
|
2022-10-03 20:11:07 +00:00
|
|
|
provided(libs.viaversion)
|
2022-11-07 02:32:55 +00:00
|
|
|
provided("com.mojang", "authlib", "1.5.21")
|
2022-02-27 22:38:55 +00:00
|
|
|
|
|
|
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|
|
|
archiveBaseName.set("Geyser-Spigot")
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
exclude(dependency("com.google.*:.*"))
|
|
|
|
|
|
|
|
// We cannot shade Netty, or else native libraries will not load
|
|
|
|
// Needed because older Spigot builds do not provide the haproxy module
|
2023-03-22 15:10:04 +00:00
|
|
|
exclude(dependency("io.netty:netty-transport-classes-epoll:.*"))
|
2022-02-27 22:38:55 +00:00
|
|
|
exclude(dependency("io.netty:netty-transport-native-epoll:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-transport-native-unix-common:.*"))
|
2023-04-06 23:54:22 +00:00
|
|
|
exclude(dependency("io.netty:netty-transport-classes-kqueue:.*"))
|
2022-02-27 22:38:55 +00:00
|
|
|
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-07 23:22:46 +00:00
|
|
|
|
|
|
|
// Commodore includes Brigadier
|
|
|
|
exclude(dependency("com.mojang:.*"))
|
2022-02-27 22:38:55 +00:00
|
|
|
}
|
2023-06-07 18:22:36 +00:00
|
|
|
}
|