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); } }
public void resolve(DependencyMetaData dependency, BuildableModuleVersionResolveResult result) { DependencyDescriptor descriptor = dependency.getDescriptor(); if (descriptor instanceof ProjectDependencyDescriptor) { ProjectDependencyDescriptor desc = (ProjectDependencyDescriptor) descriptor; ModuleDescriptor moduleDescriptor = projectModuleRegistry.findProject(desc); final ModuleRevisionId moduleRevisionId = moduleDescriptor.getModuleRevisionId(); final DefaultModuleVersionIdentifier moduleVersionIdentifier = new DefaultModuleVersionIdentifier( moduleRevisionId.getOrganisation(), moduleRevisionId.getName(), moduleRevisionId.getRevision()); result.resolved(moduleVersionIdentifier, moduleDescriptor, artifactResolver); } else { resolver.resolve(dependency, result); } }