Пример #1
0
    public ModuleVersionResolveResult resolve() {
      if (resolveResult != null) {
        return resolveResult;
      }
      if (failure != null) {
        return null;
      }

      resolveResult = idResolveResult.resolve();
      if (resolveResult.getFailure() != null) {
        failure = resolveResult.getFailure();
        return null;
      }
      setResolveResult(resolveResult);
      return resolveResult;
    }
Пример #2
0
 public ResolveState(
     ModuleVersionResolveResult rootResult,
     String rootConfigurationName,
     DependencyToModuleVersionIdResolver resolver,
     DependencyToConfigurationResolver dependencyToConfigurationResolver,
     ResolvedConfigurationBuilder builder) {
   this.resolver = resolver;
   this.dependencyToConfigurationResolver = dependencyToConfigurationResolver;
   this.builder = builder;
   ModuleVersionResolveState rootVersion = getRevision(rootResult.getId());
   rootVersion.setResolveResult(rootResult);
   root = getConfigurationNode(rootVersion, rootConfigurationName);
   root.moduleRevision.module.select(root.moduleRevision);
 }
Пример #3
0
 public void setResolveResult(ModuleVersionResolveResult resolveResult) {
   this.resolveResult = resolveResult;
   this.metaData = resolveResult.getMetaData();
   this.failure = null;
 }