use of org.gradle.api.artifacts.DependencyArtifact in project gradle by gradle.
the class AbstractIvyDependencyDescriptorFactory method convertArtifacts.
protected List<IvyArtifactName> convertArtifacts(Set<DependencyArtifact> dependencyArtifacts) {
if (dependencyArtifacts.isEmpty()) {
return Collections.emptyList();
}
ImmutableList.Builder<IvyArtifactName> names = ImmutableList.builder();
for (DependencyArtifact dependencyArtifact : dependencyArtifacts) {
DefaultIvyArtifactName name = new DefaultIvyArtifactName(dependencyArtifact.getName(), dependencyArtifact.getType(), getExtension(dependencyArtifact), dependencyArtifact.getClassifier());
names.add(name);
}
return names.build();
}
Aggregations