use of org.gradle.internal.component.external.model.DefaultIvyModulePublishMetadata in project gradle by gradle.
the class DefaultIvyDependencyPublisher method publish.
public void publish(List<ModuleVersionPublisher> publishResolvers, IvyModulePublishMetadata publishMetaData) {
try {
// Make a copy of the publication and filter missing artifacts
DefaultIvyModulePublishMetadata publication = new DefaultIvyModulePublishMetadata(publishMetaData.getId(), publishMetaData.getModuleDescriptor());
for (IvyModuleArtifactPublishMetadata artifact : publishMetaData.getArtifacts()) {
addPublishedArtifact(artifact, publication);
}
for (ModuleVersionPublisher publisher : publishResolvers) {
LOGGER.info("Publishing to {}", publisher);
publisher.publish(publication);
}
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
use of org.gradle.internal.component.external.model.DefaultIvyModulePublishMetadata in project gradle by gradle.
the class IvyBackedArtifactPublisher method toPublishMetaData.
private BuildableIvyModulePublishMetadata toPublishMetaData(Module module, Set<? extends ConfigurationInternal> configurations) {
ModuleComponentIdentifier id = DefaultModuleComponentIdentifier.newId(module.getGroup(), module.getName(), module.getVersion());
DefaultIvyModulePublishMetadata publishMetaData = new DefaultIvyModulePublishMetadata(id, module.getStatus());
configurationComponentMetaDataBuilder.addConfigurations(publishMetaData, configurations);
return publishMetaData;
}
Aggregations