Geyser/bootstrap/bungeecord/base/build.gradle.kts

38 lines
1.3 KiB
Text
Raw Normal View History

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)
2022-08-24 04:53:13 +00:00
implementation(libs.adventure.text.serializer.bungeecord)
2023-05-05 16:22:31 +00:00
implementation(libs.floodgate.bungee)
2022-02-27 22:38:55 +00:00
}
platformRelocate("net.md_5.bungee.jni")
platformRelocate("com.fasterxml.jackson")
platformRelocate("io.netty.channel.kqueue") // This is not used because relocating breaks natives, but we must include it or else we get ClassDefNotFound
platformRelocate("net.kyori")
platformRelocate("org.yaml") // Broken as of 1.20
2022-02-27 22:38:55 +00:00
// These dependencies are already present on the platform
provided(libs.bungeecord.proxy)
2022-02-27 22:38:55 +00:00
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveBaseName.set("Geyser-BungeeCord")
dependencies {
exclude(dependency("com.google.*:.*"))
exclude(dependency("io.netty:netty-transport-native-epoll:.*"))
exclude(dependency("io.netty:netty-transport-native-unix-common:.*"))
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-resolver-dns:.*"))
}
}