2024-02-19 21:25:49 +00:00
|
|
|
dependencies {
|
|
|
|
api(projects.core)
|
2024-03-19 22:05:30 +00:00
|
|
|
|
|
|
|
compileOnlyApi(libs.viaproxy)
|
2024-02-19 21:25:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
platformRelocate("net.kyori")
|
|
|
|
platformRelocate("org.yaml")
|
|
|
|
platformRelocate("it.unimi.dsi.fastutil")
|
|
|
|
platformRelocate("org.cloudburstmc.netty")
|
2024-07-12 04:56:42 +00:00
|
|
|
platformRelocate("org.incendo")
|
|
|
|
platformRelocate("io.leangen.geantyref") // provided by cloud, should also be relocated
|
2024-02-19 21:25:49 +00:00
|
|
|
|
|
|
|
// These dependencies are already present on the platform
|
|
|
|
provided(libs.viaproxy)
|
|
|
|
|
2024-07-12 04:56:42 +00:00
|
|
|
tasks.withType<Jar> {
|
|
|
|
manifest.attributes["Main-Class"] = "org.geysermc.geyser.platform.viaproxy.GeyserViaProxyMain"
|
2024-02-19 21:25:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|
|
|
archiveBaseName.set("Geyser-ViaProxy")
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
exclude(dependency("com.google.*:.*"))
|
|
|
|
exclude(dependency("io.netty:.*"))
|
2024-04-19 09:50:40 +00:00
|
|
|
exclude(dependency("io.netty.incubator:.*"))
|
2024-02-19 21:25:49 +00:00
|
|
|
exclude(dependency("org.slf4j:.*"))
|
|
|
|
exclude(dependency("org.ow2.asm:.*"))
|
|
|
|
}
|
|
|
|
}
|