2022-02-27 23:38:55 +01:00
|
|
|
dependencies {
|
|
|
|
api(projects.core)
|
2023-03-30 21:44:55 +02:00
|
|
|
api(libs.erosion.bukkit.common) {
|
|
|
|
isTransitive = false
|
|
|
|
}
|
2022-02-27 23:38:55 +01:00
|
|
|
|
2022-09-26 17:43:17 +02:00
|
|
|
implementation(libs.adapters.spigot)
|
2022-04-08 01:22:46 +02:00
|
|
|
|
2022-09-26 17:43:17 +02:00
|
|
|
implementation(libs.commodore)
|
2022-08-24 06:53:13 +02:00
|
|
|
|
2022-09-26 17:43:17 +02:00
|
|
|
implementation(libs.adventure.text.serializer.bungeecord)
|
2022-07-12 19:09:48 +02:00
|
|
|
|
2023-03-30 21:44:55 +02:00
|
|
|
// Both folia-api and paper-mojangapi only provide Java 17 versions for 1.19
|
|
|
|
compileOnly(libs.folia.api) {
|
2022-07-12 19:09:48 +02:00
|
|
|
attributes {
|
|
|
|
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
|
|
|
|
}
|
|
|
|
}
|
2022-09-26 17:43:17 +02:00
|
|
|
compileOnly(libs.paper.mojangapi) {
|
2022-07-12 19:09:48 +02:00
|
|
|
attributes {
|
|
|
|
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
|
|
|
|
}
|
|
|
|
}
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
platformRelocate("it.unimi.dsi.fastutil")
|
|
|
|
platformRelocate("com.fasterxml.jackson")
|
2022-08-24 15:41:24 +02:00
|
|
|
// Relocate net.kyori but exclude the component logger
|
2022-08-24 07:18:12 +02:00
|
|
|
platformRelocate("net.kyori", "net.kyori.adventure.text.logger.slf4j.ComponentLogger")
|
2022-02-27 23:38:55 +01:00
|
|
|
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
|
2022-10-03 22:11:07 +02:00
|
|
|
provided(libs.viaversion)
|
2022-02-27 23:38:55 +01:00
|
|
|
|
|
|
|
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
|
2023-03-22 16:10:04 +01:00
|
|
|
exclude(dependency("io.netty:netty-transport-classes-epoll:.*"))
|
2022-02-27 23:38:55 +01:00
|
|
|
exclude(dependency("io.netty:netty-transport-native-epoll:.*"))
|
|
|
|
exclude(dependency("io.netty:netty-transport-native-unix-common:.*"))
|
2023-04-07 01:54:22 +02:00
|
|
|
exclude(dependency("io.netty:netty-transport-classes-kqueue:.*"))
|
2022-02-27 23:38:55 +01: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-08 01:22:46 +02:00
|
|
|
|
|
|
|
// Commodore includes Brigadier
|
|
|
|
exclude(dependency("com.mojang:.*"))
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
}
|