Plugin dependency not found in my java agent

Hi All,

Another newbie question from me:
I have a plugin setup which adds my Java agent to run configs. My Java agent is trying to initialise by running my premain when I debug my plugin.

My Java agent depends on Byte Buddy but I get class not found:

Exception in thread “main” java.lang.NoClassDefFoundError: net/bytebuddy/matcher/ElementMatcher

Any ideas what I’m missing? I can provied more info but not sure what specifically.

My build directory looks ok:

I saw something about gradle instrumentationTools() but is deprecated.

Thanks,

Nic.