2022-02-27 23:38:55 +01:00
dependencies {
api(projects.core)
2022-09-26 17:43:17 +02:00
implementation(libs.adventure.text.serializer.bungeecord)
2024-03-19 23:05:30 +01:00
compileOnlyApi(libs.bungeecord.proxy)
2022-02-27 23:38:55 +01:00
}
platformRelocate("net.md_5.bungee.jni")
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")
2023-06-07 20:22:36 +02:00
platformRelocate("org.yaml") // Broken as of 1.20
2024-07-09 18:26:27 +02:00
platformRelocate("org.spongepowered")
platformRelocate("io.leangen.geantyref")
2024-07-07 04:49:28 +02:00
platformRelocate("org.bstats")
2022-02-27 23:38:55 +01:00
// These dependencies are already present on the platform
2022-09-26 17:43:17 +02:00
provided(libs.bungeecord.proxy)
2022-02-27 23:38:55 +01:00
application {
mainClass.set("org.geysermc.geyser.platform.bungeecord.GeyserBungeeMain")
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveBaseName.set("Geyser-BungeeCord")
dependencies {
exclude(dependency("com.google.*:.*"))
2024-04-19 11:50:40 +02:00
exclude(dependency("io.netty.incubator:.*"))
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:.*"))
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:.*"))
}
2023-06-07 20:22:36 +02:00
}
2024-06-17 21:31:54 +02:00
modrinth {
uploadFile.set(tasks.getByPath("shadowJar"))
loaders.add("bungeecord")
}