Add support for latest Velocity 3.0.x

This commit is contained in:
Frank van der Heijden 2021-11-25 23:33:47 +01:00
parent 2a13f66500
commit 1ea8e24a1e
No known key found for this signature in database
GPG key ID: B808721C2DD5B5B8
6 changed files with 71 additions and 53 deletions

View file

@ -3,7 +3,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.0.0"
id("com.github.johnrengelman.shadow") version "7.1.0"
}
group = "net.frankheijden.serverutils"
@ -50,7 +50,7 @@ subprojects {
tasks {
build {
dependsOn("checkstyleMain", "checkstyleTest", "test")
dependsOn("shadowJar", "checkstyleMain", "checkstyleTest", "test")
}
compileJava {
@ -86,8 +86,10 @@ subprojects {
relocate("cloud.commandframework", "${dependencyDir}.cloud")
relocate("me.lucko.commodore", "${dependencyDir}.commodore")
relocate("io.leangen.geantyref", "${dependencyDir}.typetoken")
relocate("net.kyori.adventure", "${dependencyDir}.adventure")
relocate("net.kyori.examination", "${dependencyDir}.examination")
if (project.name != "Velocity") {
relocate("net.kyori.adventure", "${dependencyDir}.adventure")
relocate("net.kyori.examination", "${dependencyDir}.examination")
}
relocate("net.kyori.adventure.text.minimessage", "${dependencyDir}.adventure.text.minimessage")
relocate("dev.frankheijden.minecraftreflection", "${dependencyDir}.minecraftreflection")
}
@ -151,7 +153,6 @@ tasks.withType<ShadowJar> {
fun outputTasks(): List<Task> {
return listOf(
"shadowJar",
":Bukkit:shadowJar",
":Bungee:shadowJar",
":Velocity:shadowJar",