Package org.dru.clay.respository.dependency

Examples of org.dru.clay.respository.dependency.Dependency


  public void resolve(final File directory, String configuration, Collection<Dependency> dependencies) {
    filterDependencies(Collections.singleton(configuration), dependencies, resolveQueue);

    while (resolveQueue.peek() != null) {
      final ConfigurationContext context = resolveQueue.poll();
      final Dependency dependency = context.getDependency();
      final Group group = dependency.getGroup();
      final UnresolvedArtifact unresolved = dependency.getArtifact();

      final Artifact resolveArtifact = repository.lookup(transport, group, unresolved);

      logger.info("Resolved %s -> %s", unresolved, resolveArtifact);
View Full Code Here


  private void parseDependencies(Module module, Element ivyModule) {
    final Node deps = Xml.getSingleChild(ivyModule, "dependencies");

    for (Node node : Xml.getChildren(deps, "dependency")) {
      final Dependency dependency = parseDependency(module, node);
      dependencies.add(dependency);
    }
  }
View Full Code Here

    if (!Xml.getChildren(node, "conf").isEmpty()) {
      logger.error("Dependency %s uses nested conf elements which isn't supported : using '*'", artifact);
      conf = "*";
    }
    final ConfigurationMapping mapping = configurationParser.parse(conf);
    return new Dependency(new Group(group), artifact, mapping, transitive);
  }
View Full Code Here

    CacheIvyRepository cacheIvyRepository = new CacheIvyRepository(new File("repo"), repository, transport);

    Group group = new Group("king");

    Dependency dependency = new Dependency(group, new UnresolvedArtifact("plataforma", new VersionPattern("0.193.5")),
        new ConfigurationMapping(MappingRules.simple("runtime")), true);

    final DependencyResolver resolver = new DependencyResolverImpl(cacheIvyRepository, transport);
    resolver.resolve(new File("libs"), "runtime", Collections.singletonList(dependency));
  }
View Full Code Here

      final Collection<Dependency> dependencies = new ArrayList<Dependency>();
     
      for (IvyDependency dependency : entry.getValue()) {
        final ConfigurationMapping mapping = mappingParser.parse(dependency.getConf());
        final UnresolvedArtifact artifact = new UnresolvedArtifact(dependency.getName(), new VersionPattern(dependency.getRev()));
        dependencies.add(new Dependency(new Group(dependency.getOrg()), artifact, mapping, true));
      }
     
      dependencyMap.put(configuration, dependencies);
    }
   
View Full Code Here

TOP

Related Classes of org.dru.clay.respository.dependency.Dependency

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.