Chat/velocity/build.gradle.kts
2022-02-23 15:50:21 +01:00

36 lines
1.2 KiB
Plaintext

plugins {
`maven-publish`
id("com.github.johnrengelman.shadow")
}
dependencies {
implementation(project(":api")) // API
compileOnly("com.velocitypowered:velocity-api:3.0.1") // Velocity
annotationProcessor("com.velocitypowered:velocity-api:3.0.1")
implementation("mysql:mysql-connector-java:8.0.27") // mysql
implementation("org.spongepowered", "configurate-yaml", "4.1.2")
compileOnly("com.alttd.proxydiscordlink:ProxyDiscordLink:1.0.0-BETA-SNAPSHOT")
// implementation("net.kyori", "adventure-text-minimessage", "4.10.0-SNAPSHOT") {
// exclude("net.kyori")
// exclude("net.kyori.examination")
// }
implementation(files("../libs/minimessage-4.10.0-SNAPSHOT.jar")) // Workaround for minimessage
compileOnly("com.gitlab.ruany:LiteBansAPI:0.3.5")
}
tasks {
shadowJar {
archiveFileName.set("${project.name}-${project.version}.jar")
// minimize()
listOf(
"net.kyori.adventure.text.minimessage",
"org.spongepowered.configurate"
).forEach { relocate(it, "${rootProject.group}.lib.${it.substringAfterLast(".")}") }
}
build {
dependsOn(shadowJar)
}
}