Jump to content

Recommended Posts

Posted

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

Posted (edited)

I want 4.1.29 because it has better DNS redirects, how can I make it work? (not the DNS redirects, the netty shading)

Edited by Chormi
clarify
Posted

so what stepts do I have to take to make it work? I tried building it from the terminal but that didn't work either. The code is done.

Posted

Can I just git clone from github and just rename the packages? Or what do you mean by create my own version of the netty library?

Posted

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)

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.