Esempio n. 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;
    }
Esempio n. 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);
 }
Esempio n. 3
0
 public void setResolveResult(ModuleVersionResolveResult resolveResult) {
   this.resolveResult = resolveResult;
   this.metaData = resolveResult.getMetaData();
   this.failure = null;
 }