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()));
 }
 private void addModuleDependency(ModuleDependency dependency, String confMapping) {
   ivyDependencies.add(new DefaultIvyDependency(dependency, confMapping));
 }