Skip to content

Commit

Permalink
Fix: relocate shaded Netty HTTP codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Jul 22, 2023
1 parent 31b0ba0 commit 03d4bb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ repositories {
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"

shadow ('io.netty:netty-codec-http:4.1.77.Final') {
shadow ('io.netty:netty-codec-http:4.1.82.Final') {
transitive = false
}
}
Expand Down Expand Up @@ -127,6 +127,10 @@ shadowJar {
configurations = [project.configurations.shadow]
archiveClassifier = ''
finalizedBy 'reobfShadowJar'

['http', 'rtps', 'spdy'].forEach {
relocate "io.netty.handler.codec.$it", "com.lovetropics.lib.repack.io.netty.handler.codec.$it"
}
}

reobf {
Expand Down

0 comments on commit 03d4bb2

Please sign in to comment.