use of org.gradle.api.publish.ivy.IvyArtifact in project gradle by gradle.
the class IvyDescriptorFileGenerator method writePublications.
private void writePublications(OptionalAttributeXmlWriter xmlWriter) throws IOException {
xmlWriter.startElement("publications");
for (IvyArtifact artifact : artifacts) {
xmlWriter.startElement("artifact").attribute("name", artifact.getName()).attribute("type", artifact.getType()).attribute("ext", artifact.getExtension()).attribute("conf", artifact.getConf()).attribute("m:classifier", artifact.getClassifier()).endElement();
}
xmlWriter.endElement();
}
use of org.gradle.api.publish.ivy.IvyArtifact in project gradle by gradle.
the class ValidatingIvyPublisher method checkNoDuplicateArtifacts.
private void checkNoDuplicateArtifacts(IvyNormalizedPublication publication) {
Set<IvyArtifact> verified = new HashSet<IvyArtifact>();
for (final IvyArtifact artifact : publication.getArtifacts()) {
checkNotDuplicate(publication, verified, artifact.getName(), artifact.getExtension(), artifact.getType(), artifact.getClassifier());
verified.add(artifact);
}
// Check that ivy.xml isn't duplicated
checkNotDuplicate(publication, verified, "ivy", "xml", "xml", null);
}
Aggregations