Rename a file within jar or shadow jar task


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/’,’/META-INF/native/’ within the jar task without success.

Many thanks for your help.

Gradle Version

Shadow Version

Hi guys, any ideas?
Many thanks