0
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2024-11-22 09:16:12 +00:00
Floodgate/core/build.gradle.kts
chris f8c84182d6
Deal with getLocale being nullable during login on BungeeCord (#511)
* Temporary fix for https://github.com/GeyserMC/Floodgate/issues/510, bump cloud to rc candidate

* apparently it is supposed to be nullable. okay then.
2024-05-14 17:41:00 +02:00

40 lines
1.2 KiB
Plaintext

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("floodgate.generate-templates")
}
dependencies {
api(projects.api)
api("org.geysermc.configutils", "configutils", Versions.configUtilsVersion)
compileOnly(projects.ap)
annotationProcessor(projects.ap)
api("com.google.inject", "guice", Versions.guiceVersion)
api("com.nukkitx.fastutil", "fastutil-short-object-maps", Versions.fastutilVersion)
api("com.nukkitx.fastutil", "fastutil-int-object-maps", Versions.fastutilVersion)
api("org.java-websocket", "Java-WebSocket", Versions.javaWebsocketVersion)
api("org.incendo", "cloud-core", Versions.cloudCore)
api("org.bstats", "bstats-base", Versions.bstatsVersion)
}
// present on all platforms
provided("io.netty", "netty-transport", Versions.nettyVersion)
provided("io.netty", "netty-codec", Versions.nettyVersion)
relocate("org.bstats")
tasks {
templateSources {
replaceToken("floodgateVersion", fullVersion())
replaceToken("branch", branchName())
replaceToken("buildNumber", buildNumber())
}
named<Jar>("jar") {
archiveClassifier.set("")
}
named<ShadowJar>("shadowJar") {
archiveClassifier.set("shaded")
}
}