Search in sources :

Example 1 with DefaultIvyDependency

use of org.gradle.api.publish.ivy.internal.dependency.DefaultIvyDependency in project gradle by gradle.

the class DefaultIvyPublication method addProjectDependency.

private void addProjectDependency(ProjectDependency dependency, String confMapping) {
    ModuleVersionIdentifier identifier = projectDependencyResolver.resolve(ModuleVersionIdentifier.class, dependency);
    DefaultIvyDependency moduleDep = new DefaultIvyDependency(identifier.getGroup(), identifier.getName(), identifier.getVersion(), confMapping, dependency.isTransitive(), Collections.<DependencyArtifact>emptyList(), dependency.getExcludeRules());
    ivyDependencies.add(new DefaultIvyProjectDependency(moduleDep, dependency.getDependencyProject().getPath()));
}
Also used : ModuleVersionIdentifier(org.gradle.api.artifacts.ModuleVersionIdentifier) DefaultModuleVersionIdentifier(org.gradle.api.internal.artifacts.DefaultModuleVersionIdentifier) DefaultIvyDependency(org.gradle.api.publish.ivy.internal.dependency.DefaultIvyDependency) DefaultIvyProjectDependency(org.gradle.api.publish.ivy.internal.dependency.DefaultIvyProjectDependency)

Aggregations

ModuleVersionIdentifier (org.gradle.api.artifacts.ModuleVersionIdentifier)1 DefaultModuleVersionIdentifier (org.gradle.api.internal.artifacts.DefaultModuleVersionIdentifier)1 DefaultIvyDependency (org.gradle.api.publish.ivy.internal.dependency.DefaultIvyDependency)1 DefaultIvyProjectDependency (org.gradle.api.publish.ivy.internal.dependency.DefaultIvyProjectDependency)1