return dependencyResolver.resolve(configuration, ivy, moduleDescriptor);
}
public void publish(Set<Configuration> configurationsToPublish, File descriptorDestination,
List<DependencyResolver> publishResolvers) {
Ivy ivy = ivyForPublish(publishResolvers, metaDataProvider.getGradleUserHomeDir());
Set<String> confs = Configurations.getNames(configurationsToPublish, false);
writeDescriptorFile(descriptorDestination, configurationsToPublish, ivy.getSettings());
dependencyPublisher.publish(
confs,
publishResolvers,
publishModuleDescriptorConverter.convert(configurationsToPublish, metaDataProvider.getModule(), ivy.getSettings()),
descriptorDestination,
ivy.getPublishEngine());
}