Search in sources :

Example 1 with UnresolvedDependenciesLogger

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

the class EclipseClasspath method resolveDependencies.

/**
     * Calculates, resolves and returns dependency entries of this classpath.
     */
public List<ClasspathEntry> resolveDependencies() {
    ClasspathFactory classpathFactory = new ClasspathFactory(this);
    List<ClasspathEntry> entries = classpathFactory.createEntries();
    new UnresolvedDependenciesLogger().log(classpathFactory.getUnresolvedDependencies());
    return entries;
}
Also used : UnresolvedDependenciesLogger(org.gradle.plugins.ide.internal.resolver.UnresolvedDependenciesLogger) ClasspathFactory(org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory)

Example 2 with UnresolvedDependenciesLogger

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

the class IdeaModule method resolveDependencies.

/**
     * Resolves and returns the module's dependencies.
     *
     * @return dependencies
     */
public Set<Dependency> resolveDependencies() {
    ProjectInternal projectInternal = (ProjectInternal) project;
    IdeaDependenciesProvider ideaDependenciesProvider = new IdeaDependenciesProvider(projectInternal.getServices());
    new UnresolvedDependenciesLogger().log(ideaDependenciesProvider.getUnresolvedDependencies(this));
    return ideaDependenciesProvider.provide(this);
}
Also used : UnresolvedDependenciesLogger(org.gradle.plugins.ide.internal.resolver.UnresolvedDependenciesLogger) ProjectInternal(org.gradle.api.internal.project.ProjectInternal) IdeaDependenciesProvider(org.gradle.plugins.ide.idea.model.internal.IdeaDependenciesProvider)

Aggregations

UnresolvedDependenciesLogger (org.gradle.plugins.ide.internal.resolver.UnresolvedDependenciesLogger)2 ProjectInternal (org.gradle.api.internal.project.ProjectInternal)1 ClasspathFactory (org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory)1 IdeaDependenciesProvider (org.gradle.plugins.ide.idea.model.internal.IdeaDependenciesProvider)1