How to resolve project dependencies (artifacts files) from gradle tooling API

Hi,

I am writing a Walkmod plugin to resolve the project classpath of gradle projects. I need to resolve all the dependency artifacts (with its own file path) to build the classloader of the project. I am using the "gradle tooling API " for this purpose. I can do it perfectly using the EclipseProject model for pure Java projects, but it doesn’t work for Android projects (because the returned classpath is null). Could you give any workaround to do so?

The current code is like this one:

EclipseProject project = connection.getModel(EclipseProject.class); for (ExternalDependency externalDependency : project.getClasspath()) { classPathFiles.add(externalDependency.getFile()); }