Exclude GSON from being shaded when shading adventure on the spigot module.
This commit is contained in:
1 parent
4db2dc0592
commit
8eb60e9398
2 files changed
+7
-1
No files matched your search
+4
-1
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user