Source Dependencies for Plugins

Is it possible to reference a plugin via a source dependency? If so is there a concrete example out there that can be referenced? This would be really nice as it would all me to fork/clone separate plugin repos to use features that may not have been published to the public plugin repo. It would also all for the management of internal shared plugins with them all being cobbled together in the buildsrc.

Thank you