Search in sources :

Example 1 with LongIdGenerator

use of org.gradle.internal.id.LongIdGenerator in project gradle by gradle.

the class DependencyGraphBuilder method resolve.

public void resolve(ResolveContext resolveContext, DependencyGraphVisitor modelVisitor) {
    IdGenerator<Long> idGenerator = new LongIdGenerator();
    DefaultBuildableComponentResolveResult rootModule = new DefaultBuildableComponentResolveResult();
    moduleResolver.resolve(resolveContext, rootModule);
    ResolveState resolveState = new ResolveState(idGenerator, rootModule, resolveContext.getName(), idResolver, metaDataResolver, edgeFilter, attributesSchema, moduleIdentifierFactory, moduleExclusions);
    conflictHandler.registerResolver(new DirectDependencyForcingResolver(resolveState.root.moduleRevision));
    traverseGraph(resolveState, conflictHandler);
    resolveState.root.moduleRevision.setSelectionReason(VersionSelectionReasons.ROOT);
    assembleResult(resolveState, modelVisitor);
}
Also used : LongIdGenerator(org.gradle.internal.id.LongIdGenerator) DefaultBuildableComponentResolveResult(org.gradle.internal.resolve.result.DefaultBuildableComponentResolveResult)

Aggregations

LongIdGenerator (org.gradle.internal.id.LongIdGenerator)1 DefaultBuildableComponentResolveResult (org.gradle.internal.resolve.result.DefaultBuildableComponentResolveResult)1