Rename a file within jar or shadow jar task

Hi,

That should be something simple to do but I haven’t found a solution yet: How do you rename a file during the jar creation? It is something required for shading Netty natives libraries.

I’ve tried some things such as rename ‘/META-INF/native/libnetty-transport-native-epoll.so’,’/META-INF/native/libshade-netty-transport-native-epoll.so’ within the jar task without success.

Many thanks for your help.

Gradle Version
3.3

Shadow Version
1.2.3

Hi guys, any ideas?
Many thanks