Get Dependencies in a Project using a Gradle Plugin


I am pretty new to Gradle and wanted to develop a plugin which will tell me all the dependencies associated with that project. I am not sure on how to get those dependencies in my Plugin. Is there any way we can those dependencies from the POM file generated. In our system after build is complete the artifacts are published to Nexus3(not sure how to get the pom from nexus3) or is their any any other approach we can implement to get the dependencies.

Any help will be highly appreciated. Also let me know if you need any information from my end.