Thanks for your reply, Luke! I’ve been going through the Gradle API the past few days and I had some questions with regards to the GradleProject model in Tooling API.
I can see we can access the Project object in the GradleProjectBuilder. Can we add another method to retrieve dependencies via the Configurations Object in Project? .
This way my aforementioned problem can be solved, as I can use the GradleProject model to retrieve the project dependency jars.
Have a look at the IdeaProject model and/or Eclipse counterpart. You might be able to use those to get the dependency information you need. Otherwise, you’ll have to write a custom model to get the information.
If I am not wrong, the Idea and Eclipse model relies on the presence of .iml and .classpath files through which they extract the dependencies of a gradle project.
I request you to consider this use case. What if we need to extract dependencies from a gradle project that was not imported using IntelliJ Idea/Eclipse or imported using Netbeans?