Sandboxing/excluding plugin dependencies?

I have two plugins that share the same dependency but in two different versions.

I wonder if there is a way to exclude dependency in one of the plugins or is there a way to make dependencies of each plugin invisible to other plugins?

If not, are there any plans on improving dependency resolution for plugins dependencies?

You can create shaded/shadow jars with relocated dependencies so that both versions of the classes may coexist.

Here’s an example using the shadow plugin Using Shadow to Package Gradle Plugins

@Chris_Dore I’m not a developer of any of those plugins, just a user. Thus I wonder what I can do as a user…