private void transformDependencies(BuildableModuleVersionMetaDataResolveResult result) {
   MutableModuleVersionMetaData metaData = result.getMetaData();
   List<DependencyMetaData> transformed = new ArrayList<DependencyMetaData>();
   for (DependencyMetaData dependency : metaData.getDependencies()) {
     transformed.add(
         dependency.withRequestedVersion(
             dependency.getDescriptor().getDynamicConstraintDependencyRevisionId().getRevision()));
   }
   metaData.setDependencies(transformed);
 }
Exemplo n.º 2
0
 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);
   }
 }