for (IdeExtendedRepoFileDependency ideRepoFileDependency : ideRepoFileDependencies) {
IdeDependencyKey<?, Dependency> key = IdeDependencyKey.forRepoFileDependency(
ideRepoFileDependency,
new IdeDependencyKey.DependencyBuilder<IdeExtendedRepoFileDependency, Dependency>() {
public Dependency buildDependency(IdeExtendedRepoFileDependency dependency, String scope) {
SingleEntryModuleLibrary library = new SingleEntryModuleLibrary(
getPath.apply(dependency.getFile()), getPath.apply(dependency.getJavadocFile()), getPath.apply(dependency.getSourceFile()), scope);
library.setModuleVersion(dependency.getId());
return library;
}});
dependencyToConfigurations.put(key, configuration.getName());
}
}
// file dependencies
Collection<IdeLocalFileDependency> ideLocalFileDependencies = dependenciesExtractor.extractLocalFileDependencies(
Collections.singletonList(configuration), Collections.<Configuration>emptyList());
for (IdeLocalFileDependency fileDependency : ideLocalFileDependencies) {
IdeDependencyKey<?, Dependency> key = IdeDependencyKey.forLocalFileDependency(
fileDependency,
new IdeDependencyKey.DependencyBuilder<IdeLocalFileDependency, Dependency>() {
public Dependency buildDependency(IdeLocalFileDependency dependency, String scope) {
return new SingleEntryModuleLibrary(getPath.apply(dependency.getFile()), scope);
}});
dependencyToConfigurations.put(key, configuration.getName());
}
}