コード例 #1
0
 public void resolve(
     ModuleInternal module,
     Set<? extends Configuration> configurations,
     BuildableComponentResolveResult result) {
   LocalComponentMetaData componentMetaData =
       localComponentFactory.convert(configurations, module);
   result.resolved(componentMetaData.toResolveMetaData());
 }
コード例 #2
0
 public void resolve(DependencyMetaData dependency, BuildableComponentIdResolveResult result) {
   if (dependency.getSelector() instanceof ProjectComponentSelector) {
     ProjectComponentSelector selector = (ProjectComponentSelector) dependency.getSelector();
     LocalComponentMetaData componentMetaData =
         projectComponentRegistry.getProject(selector.getProjectPath());
     result.resolved(componentMetaData.toResolveMetaData());
   } else {
     delegate.resolve(dependency, result);
   }
 }
コード例 #3
0
 public void resolve(DependencyMetaData dependency, BuildableComponentIdResolveResult result) {
   if (dependency.getSelector() instanceof ProjectComponentSelector) {
     ProjectComponentSelector selector = (ProjectComponentSelector) dependency.getSelector();
     String projectPath = selector.getProjectPath();
     LocalComponentMetaData componentMetaData = projectComponentRegistry.getProject(projectPath);
     if (componentMetaData == null) {
       result.failed(
           new ModuleVersionResolveException(
               selector, "project '" + projectPath + "' not found."));
     } else {
       result.resolved(componentMetaData.toResolveMetaData());
     }
   }
 }
コード例 #4
0
 public void resolve(
     ComponentIdentifier identifier,
     ComponentOverrideMetadata componentOverrideMetadata,
     BuildableComponentResolveResult result) {
   if (identifier instanceof ProjectComponentIdentifier) {
     String projectPath = ((ProjectComponentIdentifier) identifier).getProjectPath();
     LocalComponentMetaData componentMetaData = projectComponentRegistry.getProject(projectPath);
     if (componentMetaData == null) {
       result.failed(
           new ModuleVersionResolveException(
               new DefaultProjectComponentSelector(projectPath),
               "project '" + projectPath + "' not found."));
     } else {
       result.resolved(componentMetaData.toResolveMetaData());
     }
   }
 }