Adding dependencies & maven repo required for a plugin

So I am trying to construct together a plugin for Gradle, my plugin requires a dependency which is not found when the plugin is specified or used in gradle because it doesn’t exist in the maven central repository.

What is the correct way to add a dependency and maven repository to my plugin?

Also to note this is in Java and not Groovy.


If it doesn’t exist in maven-central how are you using it? If it is something that you also created you could upload it to maven central or include all the files in the plugin (i.e. make it a “fat” jar)