2022-02-27 23:38:55 +01:00
|
|
|
dependencies {
|
2022-09-26 17:43:17 +02:00
|
|
|
annotationProcessor(libs.velocity.api)
|
2022-02-27 23:38:55 +01:00
|
|
|
api(projects.core)
|
2024-03-19 23:05:30 +01:00
|
|
|
|
|
|
|
compileOnlyApi(libs.velocity.api)
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
platformRelocate("com.fasterxml.jackson")
|
2022-04-20 18:36:10 +02:00
|
|
|
platformRelocate("it.unimi.dsi.fastutil")
|
2022-02-27 23:38:55 +01:00
|
|
|
platformRelocate("net.kyori.adventure.text.serializer.gson.legacyimpl")
|
2024-03-21 19:05:41 +01:00
|
|
|
platformRelocate("org.yaml")
|
2024-07-07 04:49:28 +02:00
|
|
|
platformRelocate("org.bstats")
|
2022-02-27 23:38:55 +01:00
|
|
|
|
|
|
|
exclude("com.google.*:*")
|
|
|
|
|
2024-04-19 11:50:40 +02:00
|
|
|
// Needed because Velocity provides every dependency except netty-resolver-dns
|
|
|
|
exclude("io.netty.incubator:.*")
|
2022-02-27 23:38:55 +01:00
|
|
|
exclude("io.netty:netty-transport-native-epoll:*")
|
|
|
|
exclude("io.netty:netty-transport-native-unix-common:*")
|
|
|
|
exclude("io.netty:netty-transport-native-kqueue:*")
|
|
|
|
exclude("io.netty:netty-handler:*")
|
|
|
|
exclude("io.netty:netty-common:*")
|
|
|
|
exclude("io.netty:netty-buffer:*")
|
|
|
|
exclude("io.netty:netty-resolver:*")
|
|
|
|
exclude("io.netty:netty-transport:*")
|
|
|
|
exclude("io.netty:netty-codec:*")
|
|
|
|
exclude("io.netty:netty-codec-haproxy:*")
|
|
|
|
exclude("org.slf4j:*")
|
|
|
|
exclude("org.ow2.asm:*")
|
|
|
|
|
|
|
|
// Exclude all Kyori dependencies except the legacy NBT serializer
|
|
|
|
exclude("net.kyori:adventure-api:*")
|
|
|
|
exclude("net.kyori:examination-api:*")
|
|
|
|
exclude("net.kyori:examination-string:*")
|
|
|
|
exclude("net.kyori:adventure-text-serializer-gson:*")
|
|
|
|
exclude("net.kyori:adventure-text-serializer-legacy:*")
|
|
|
|
exclude("net.kyori:adventure-nbt:*")
|
|
|
|
|
|
|
|
// These dependencies are already present on the platform
|
2022-09-26 17:43:17 +02:00
|
|
|
provided(libs.velocity.api)
|
2022-02-27 23:38:55 +01:00
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass.set("org.geysermc.geyser.platform.velocity.GeyserVelocityMain")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|
|
|
archiveBaseName.set("Geyser-Velocity")
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
exclude(dependency("com.google.*:.*"))
|
|
|
|
// Needed because Velocity provides every dependency except netty-resolver-dns
|
|
|
|
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-haproxy:.*"))
|
2024-04-19 11:50:40 +02:00
|
|
|
exclude(dependency("io.netty.incubator:.*"))
|
2022-02-27 23:38:55 +01:00
|
|
|
exclude(dependency("org.slf4j:.*"))
|
|
|
|
exclude(dependency("org.ow2.asm:.*"))
|
|
|
|
// Exclude all Kyori dependencies except the legacy NBT serializer
|
|
|
|
exclude(dependency("net.kyori:adventure-api:.*"))
|
|
|
|
exclude(dependency("net.kyori:examination-api:.*"))
|
|
|
|
exclude(dependency("net.kyori:examination-string:.*"))
|
|
|
|
exclude(dependency("net.kyori:adventure-text-serializer-gson:.*"))
|
|
|
|
exclude(dependency("net.kyori:adventure-text-serializer-legacy:.*"))
|
|
|
|
exclude(dependency("net.kyori:adventure-nbt:.*"))
|
|
|
|
}
|
2024-06-17 21:31:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
modrinth {
|
|
|
|
uploadFile.set(tasks.getByPath("shadowJar"))
|
|
|
|
loaders.addAll("velocity")
|
2024-07-07 04:49:28 +02:00
|
|
|
}
|