public void resolve( Module module, Set<? extends Configuration> configurations, BuildableModuleVersionResolveResult result) { LocalComponentMetaData componentMetaData = localComponentFactory.convert(configurations, module); result.resolved( componentMetaData.toResolveMetaData(), new ProjectArtifactResolver(componentMetaData)); }
public void resolve(DependencyMetaData dependency, BuildableModuleVersionResolveResult result) { DependencyDescriptor descriptor = dependency.getDescriptor(); if (descriptor instanceof ProjectDependencyDescriptor) { ProjectDependencyDescriptor desc = (ProjectDependencyDescriptor) descriptor; LocalComponentMetaData componentMetaData = projectModuleRegistry.findProject(desc); result.resolved( componentMetaData.toResolveMetaData(), new ProjectArtifactResolver(componentMetaData)); } else { resolver.resolve(dependency, result); } }