I wrote a plugin which has a dependency on the library XY. Now I don’t want the user to have to define a dependency on my plugin as well as on the library XY within the buildscript{} section of the build.gradle file in order to be able to use my plugin.
What is the gradle way to do this? Is there a programmatic way to define the dependency on XY from within my plugin?