use of org.gradle.plugins.ide.idea.model.ModuleLibrary in project gradle by gradle.
the class IdeaScalaConfigurer method getIdeaModuleLibraryDependenciesAsFiles.
private static Iterable<File> getIdeaModuleLibraryDependenciesAsFiles(IdeaModule ideaModule) {
// could make resolveDependencies() cache its result for later use by GenerateIdeaModule
Set<Dependency> dependencies = ideaModule.resolveDependencies();
List<File> files = Lists.newArrayList();
for (ModuleLibrary moduleLibrary : Iterables.filter(dependencies, ModuleLibrary.class)) {
for (FilePath filePath : Iterables.filter(moduleLibrary.getClasses(), FilePath.class)) {
files.add(filePath.getFile());
}
}
return files;
}
Aggregations