Include dependencies in custom Gradle plugin

Greetings!

I am developing a custom Gradle plugin which consumes REST APIs on a remote platform.
I’m using the JAX-RS interface to make the API calls and I would like to include an implementation (e.g Jersey) in the plugin Jar.

I haven’t been able to figure out a way to do this using the Gradle Plugin Development Plugin

If I do not include an implementation, I get a “NoClassDefFoundError”
Can somebody please help me?

Could somebody please help me with this?