Gradle jlink

Hi! I need to use the gradle jlink function, to build a java 11 modular program.
To do that I have to run gradle jlink, without the following jar.
Can I remove it from the gradle plugin? or can I edit a local copy of the gradle plugin?
Thanks

I think I found the solution:
copy the plugin .py in snap/plugins and make the change.
Is it possible to patch it without having to keep a separate copy?