Copy dependancies to specific folder?

Hi everyone I am working on a plugin for a program that load plugins from a folder inside the execution directory. in order for the plugins to be loaded, they MUST be in that folder, and cannot simply be added to the classpath. I was wondering if there was anything I could do with the Gradle dependancy system via a Gradle plugin or something, that will move the plugins I depend on to the plugin loading directory.

I am 100% willing to make a gradle plugin to get what i need done, but i want to know if what im trying to do is possible and viable with the current system before I start.