Search in sources :

Example 1 with IdeDependencySet

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

the class EclipseDependenciesCreator method createDependencyEntries.

public List<AbstractClasspathEntry> createDependencyEntries() {
    EclipseDependenciesVisitor visitor = new EclipseDependenciesVisitor();
    new IdeDependencySet(classpath.getProject().getDependencies(), classpath.getPlusConfigurations(), classpath.getMinusConfigurations()).visit(visitor);
    return visitor.getDependencies();
}
Also used : IdeDependencySet(org.gradle.plugins.ide.internal.resolver.IdeDependencySet)

Example 2 with IdeDependencySet

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

the class WtpClasspathAttributeSupport method collectFilesFromConfigs.

private static Set<File> collectFilesFromConfigs(EclipseClasspath classpath, Set<Configuration> configs, Set<Configuration> minusConfigs) {
    WtpClasspathAttributeDependencyVisitor visitor = new WtpClasspathAttributeDependencyVisitor(classpath);
    new IdeDependencySet(classpath.getProject().getDependencies(), configs, minusConfigs).visit(visitor);
    return visitor.getFiles();
}
Also used : IdeDependencySet(org.gradle.plugins.ide.internal.resolver.IdeDependencySet)

Example 3 with IdeDependencySet

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

the class IdeaDependenciesProvider method visitDependencies.

private IdeaDependenciesVisitor visitDependencies(IdeaModule ideaModule, GeneratedIdeaScope scope) {
    DependencyHandler handler = ideaModule.getProject().getDependencies();
    Collection<Configuration> plusConfigurations = getPlusConfigurations(ideaModule, scope);
    Collection<Configuration> minusConfigurations = getMinusConfigurations(ideaModule, scope);
    IdeaDependenciesVisitor visitor = new IdeaDependenciesVisitor(ideaModule, scope.name());
    new IdeDependencySet(handler, plusConfigurations, minusConfigurations).visit(visitor);
    return visitor;
}
Also used : IdeDependencySet(org.gradle.plugins.ide.internal.resolver.IdeDependencySet) UnresolvedIdeDependencyHandler(org.gradle.plugins.ide.internal.resolver.UnresolvedIdeDependencyHandler) DependencyHandler(org.gradle.api.artifacts.dsl.DependencyHandler) Configuration(org.gradle.api.artifacts.Configuration)

Example 4 with IdeDependencySet

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

the class WtpComponentFactory method getEntriesFromConfigurations.

private List<WbDependentModule> getEntriesFromConfigurations(Project project, Set<Configuration> plusConfigurations, Set<Configuration> minusConfigurations, EclipseWtpComponent wtp, String deployPath) {
    WtpDependenciesVisitor visitor = new WtpDependenciesVisitor(project, wtp, deployPath);
    new IdeDependencySet(project.getDependencies(), plusConfigurations, minusConfigurations).visit(visitor);
    return visitor.getEntries();
}
Also used : IdeDependencySet(org.gradle.plugins.ide.internal.resolver.IdeDependencySet)

Aggregations

IdeDependencySet (org.gradle.plugins.ide.internal.resolver.IdeDependencySet)4 Configuration (org.gradle.api.artifacts.Configuration)1 DependencyHandler (org.gradle.api.artifacts.dsl.DependencyHandler)1 UnresolvedIdeDependencyHandler (org.gradle.plugins.ide.internal.resolver.UnresolvedIdeDependencyHandler)1