Пример #1
0
 public void resolve(
     Module module,
     Set<? extends Configuration> configurations,
     BuildableModuleVersionResolveResult result) {
   LocalComponentMetaData componentMetaData =
       localComponentFactory.convert(configurations, module);
   result.resolved(
       componentMetaData.toResolveMetaData(), new ProjectArtifactResolver(componentMetaData));
 }
Пример #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);
   }
 }
Пример #3
0
 public void resolve(
     ModuleVersionArtifactMetaData artifact, BuildableArtifactResolveResult result) {
   LocalArtifactMetaData artifactMetaData = publishMetaData.getArtifact(artifact.getId());
   if (artifactMetaData != null) {
     result.resolved(artifactMetaData.getFile());
   } else {
     result.notFound(artifact.getId());
   }
 }