Skip to content

Commit

Permalink
Merge pull request #622 from rexlManu/2.0
Browse files Browse the repository at this point in the history
Relocate only the gson and legacy
  • Loading branch information
retrooper committed Nov 16, 2023
2 parents aec45f1 + 079a2fc commit 4a2146d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bungeecord/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ dependencies {
}

shadowJar {
relocate 'net.kyori.adventure.text.serializer', 'io.github.retrooper.packetevents.adventure.serializer'
relocate 'net.kyori.adventure.text.serializer.gson', 'io.github.retrooper.packetevents.adventure.serializer.gson'
relocate 'net.kyori.adventure.text.serializer.legacy', 'io.github.retrooper.packetevents.adventure.serializer.legacy'
relocate 'net.kyori.adventure.util.Codec', 'io.github.retrooper.packetevents.adventure.util.Codec'
dependencies {
exclude(dependency('com.google.code.gson:gson:2.8.0'))
}
}
}
5 changes: 3 additions & 2 deletions spigot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8

shadowJar {
relocate 'net.kyori.adventure.text.serializer', 'io.github.retrooper.packetevents.adventure.serializer'
relocate 'net.kyori.adventure.text.serializer.gson', 'io.github.retrooper.packetevents.adventure.serializer.gson'
relocate 'net.kyori.adventure.text.serializer.legacy', 'io.github.retrooper.packetevents.adventure.serializer.legacy'
dependencies {
exclude(dependency('com.google.code.gson:gson:2.8.0'))
exclude(dependency('com.google.code.gson:gson:2.8.5'))
Expand All @@ -25,4 +26,4 @@ dependencies {
compileOnly 'org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT'
compileOnly 'com.viaversion:viaversion:4.5.0'
compileOnly 'com.github.ProtocolSupport:ProtocolSupport:3d24efeda6'
}
}

0 comments on commit 4a2146d

Please sign in to comment.