Tooling API should expose what you need. That is what IDEs, for example, use to gather dependency information.
☝️ 1
c
CodePedestrian
12/20/2022, 10:16 PM
Could you direct me to the exact place to see repositories, for instance?
I've studied the objects below, but found no information on repos or deps. Well, there was a list of classpath dependencies in Eclipse model (found that on SO), but I need tree, not flat list.
CodePedestrian
12/20/2022, 11:01 PM
Well, since Gradle files are valid Groovy files, looks like I need to parse Groovy AST and extract necessary data. I see no easier way to do so.
c
Chris Lee
12/20/2022, 11:02 PM
use the Tooling API (you’ll need to track down examples). The source files (which may be Groovy or Kotlin) don’t reflect the processing to generate the dependency model, including conflict resolution, constraints, etc.