ivyModuleDescriptorWriter.write(moduleDescriptor, descriptor);
}
// Need to convert a second time, to determine which artifacts to publish (and yes, this isn't a great way to do things...)
componentMetaData = publishLocalComponentFactory.convert(configurationsToPublish, module);
BuildableIvyModulePublishMetaData publishMetaData = componentMetaData.toPublishMetaData();
if (descriptor != null) {
Artifact artifact = MDArtifact.newIvyArtifact(componentMetaData.getModuleDescriptor());
publishMetaData.addArtifact(artifact, descriptor);
}
List<ModuleVersionPublisher> publishResolvers = new ArrayList<ModuleVersionPublisher>();
for (PublicationAwareRepository repository : repositories) {
ModuleVersionPublisher publisher = repository.createPublisher();