Jump to content

[1.15] Shading new version of netty


Chormi

Recommended Posts

Hi! I have some troubles with my gradle. I installed shadow into it, and tried shading the netty package by doing:
 

dependencies {
    compile group: 'io.netty', name: 'netty-all', version: '4.1.29.Final'

}

shadowJar{
    configurations = [project.configurations.compile]
    relocate 'io.netty', 'com.hofill.netty'
}

 

 

This is the only shadow related thing I have in my build.gradle.

After I did this, I reimported the gradle packages, and then went in my code to do :

 

new com.hofill.netty.handler.proxy.Socks5ProxyHandler()

 

Which resulted in the program telling me:

  • package com.hofill.netty.handler.proxy does not exist

 

What did I do wrong? I tried the srgExtra() but that didn't work out for me either. Could you guys please help me? Thanks a ton

Link to comment
Share on other sites

Yep, truth is I still do need it for 1.8.9, but I don't see why I couldn't ask about it since it isn't really about the version (I don't want to get my thread locked). The netty version in 1.8.9 doesn't support Socks5ProxyHandler or Socks4ProxyHandler, and I have a mod for 1.12 that does that uses these functions (seeing as how in 1.12.1 the minecraft netty version does support it). I want to port the 1.12.1 mod to 1.8.9. That's the reason i'm doing this. (sorry for lying first of all lol)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.