How to programmatically access Gradle plugin dependencies from within plugin itself? How to programmatically access Gradle plugin dependencies from within plugin itself? hadoop hadoop

How to programmatically access Gradle plugin dependencies from within plugin itself?


When your plugin is applied you obtain a reference to an instance of the Project class. With this reference you can get the project dependencies (seems that this is not what you ate looking for) as well as the dependencies of the build script itself. It can be done in the following way:

project.buildscript.dependencies 

Here is where the journey begins.