Exclude GSON from being shaded when shading adventure on the spigot module.

This commit is contained in:
retrooper committed 2022-08-01 20:33:05 +02:00
1 parent 4db2dc0592
commit 8eb60e9398
2 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -25,7 +25,10 @@ subprojects {
project.ext.nettyVersion = '4.1.72.Final'
project.ext.adventureVersion = '4.10.1'
project.ext.adventureDependencies=["net.kyori:adventure-api:${adventureVersion}", "net.kyori:adventure-text-serializer-gson:${adventureVersion}", "net.kyori:adventure-text-serializer-legacy:${adventureVersion}", "net.kyori:adventure-nbt:${adventureVersion}"]
project.ext.adventureDependencies=["net.kyori:adventure-api:${adventureVersion}",
"net.kyori:adventure-text-serializer-gson:${adventureVersion}",
"net.kyori:adventure-text-serializer-legacy:${adventureVersion}",
"net.kyori:adventure-nbt:${adventureVersion}"]
repositories {
mavenLocal()
+3
View File
@@ -11,6 +11,9 @@ java.targetCompatibility = JavaVersion.VERSION_1_8
shadowJar {
relocate 'net.kyori.adventure.text.serializer', 'io.github.retrooper.packetevents.adventure.serializer'
relocate 'net.kyori.adventure.util.Codec', 'io.github.retrooper.packetevents.adventure.util.Codec'
dependencies {
exclude(dependency('com.google.code.gson:gson:2.8.0'))
}
}
dependencies {