Search in sources :

Example 1 with LocalFileDependencyMetadata

use of org.gradle.internal.component.local.model.LocalFileDependencyMetadata in project gradle by gradle.

the class FileDependencyCollectingGraphVisitor method start.

@Override
public void start(DependencyGraphNode root) {
    Set<LocalFileDependencyMetadata> fileDependencies = ((LocalConfigurationMetadata) root.getMetadata()).getFiles();
    rootFiles = Maps.newLinkedHashMap();
    for (LocalFileDependencyMetadata fileDependency : fileDependencies) {
        FileDependencyArtifactSet artifactSet = new FileDependencyArtifactSet(idGenerator.generateId(), fileDependency, immutableAttributesFactory);
        rootFiles.put(fileDependency.getSource(), artifactSet);
        filesByNodeId.put(root.getNodeId(), artifactSet);
    }
}
Also used : LocalConfigurationMetadata(org.gradle.internal.component.local.model.LocalConfigurationMetadata) FileDependencyArtifactSet(org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.FileDependencyArtifactSet) LocalFileDependencyMetadata(org.gradle.internal.component.local.model.LocalFileDependencyMetadata)

Aggregations

FileDependencyArtifactSet (org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.FileDependencyArtifactSet)1 LocalConfigurationMetadata (org.gradle.internal.component.local.model.LocalConfigurationMetadata)1 LocalFileDependencyMetadata (org.gradle.internal.component.local.model.LocalFileDependencyMetadata)1