Search in sources :

Example 1 with UnresolvedIdeDependencyHandler

use of org.gradle.plugins.ide.internal.resolver.UnresolvedIdeDependencyHandler in project gradle by gradle.

the class IdeaDependenciesProvider method getDependencies.

private Set<Dependency> getDependencies(IdeaModule ideaModule) {
    Set<Dependency> dependencies = Sets.newLinkedHashSet();
    Map<ComponentSelector, UnresolvedDependencyResult> unresolvedDependencies = Maps.newLinkedHashMap();
    for (GeneratedIdeaScope scope : GeneratedIdeaScope.values()) {
        IdeaDependenciesVisitor visitor = visitDependencies(ideaModule, scope);
        dependencies.addAll(visitor.getDependencies());
        unresolvedDependencies.putAll(visitor.getUnresolvedDependencies());
    }
    optimizer.optimizeDeps(dependencies);
    new UnresolvedIdeDependencyHandler().log(unresolvedDependencies.values());
    return dependencies;
}
Also used : UnresolvedDependencyResult(org.gradle.api.artifacts.result.UnresolvedDependencyResult) ComponentSelector(org.gradle.api.artifacts.component.ComponentSelector) UnresolvedIdeDependencyHandler(org.gradle.plugins.ide.internal.resolver.UnresolvedIdeDependencyHandler) Dependency(org.gradle.plugins.ide.idea.model.Dependency)

Aggregations

ComponentSelector (org.gradle.api.artifacts.component.ComponentSelector)1 UnresolvedDependencyResult (org.gradle.api.artifacts.result.UnresolvedDependencyResult)1 Dependency (org.gradle.plugins.ide.idea.model.Dependency)1 UnresolvedIdeDependencyHandler (org.gradle.plugins.ide.internal.resolver.UnresolvedIdeDependencyHandler)1