Search in sources :

Example 1 with DefaultMavenDependency

use of org.gradle.api.publish.maven.internal.dependencies.DefaultMavenDependency in project gradle by gradle.

the class DefaultMavenPublication method addProjectDependency.

private void addProjectDependency(ProjectDependency dependency, Set<MavenDependencyInternal> dependencies) {
    ModuleVersionIdentifier identifier = projectDependencyResolver.resolve(dependency);
    dependencies.add(new DefaultMavenDependency(identifier.getGroup(), identifier.getName(), identifier.getVersion(), Collections.<DependencyArtifact>emptyList(), getExcludeRules(dependency)));
}
Also used : ModuleVersionIdentifier(org.gradle.api.artifacts.ModuleVersionIdentifier) DefaultModuleVersionIdentifier(org.gradle.api.internal.artifacts.DefaultModuleVersionIdentifier) DefaultMavenDependency(org.gradle.api.publish.maven.internal.dependencies.DefaultMavenDependency) DependencyArtifact(org.gradle.api.artifacts.DependencyArtifact)

Aggregations

DependencyArtifact (org.gradle.api.artifacts.DependencyArtifact)1 ModuleVersionIdentifier (org.gradle.api.artifacts.ModuleVersionIdentifier)1 DefaultModuleVersionIdentifier (org.gradle.api.internal.artifacts.DefaultModuleVersionIdentifier)1 DefaultMavenDependency (org.gradle.api.publish.maven.internal.dependencies.DefaultMavenDependency)1