public DefaultResolutionResultBuilder start(ModuleVersionIdentifier root) {
   rootModule =
       createOrGet(
           root,
           VersionSelectionReasons.ROOT,
           new DefaultModuleComponentIdentifier(
               root.getGroup(), root.getName(), root.getVersion()));
   return this;
 }
Exemplo n.º 2
0
 private void addProjectDependency(ProjectDependency dependency, String confMapping) {
   ModuleVersionIdentifier identifier = projectDependencyResolver.resolve(dependency);
   ivyDependencies.add(
       new DefaultIvyDependency(
           identifier.getGroup(),
           identifier.getName(),
           identifier.getVersion(),
           confMapping,
           dependency.isTransitive(),
           Collections.<DependencyArtifact>emptyList(),
           dependency.getExcludeRules()));
 }
Exemplo n.º 3
0
 public String getId() {
   return String.format("%s:%s:%s", id.getGroup(), id.getName(), id.getVersion());
 }
Exemplo n.º 4
0
 public String getVersion() {
   return id.getVersion();
 }