use of org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository in project gradle by gradle.
the class MavenRemotePublisher method publish.
@Override
public void publish(MavenNormalizedPublication publication, MavenArtifactRepository artifactRepository) {
URI repositoryUrl = artifactRepository.getUrl();
LOGGER.info("Publishing to repository '{}' ({})", artifactRepository.getName(), repositoryUrl);
String protocol = repositoryUrl.getScheme().toLowerCase();
DefaultMavenArtifactRepository realRepository = (DefaultMavenArtifactRepository) artifactRepository;
RepositoryTransport transport = realRepository.getTransport(protocol);
ExternalResourceRepository repository = transport.getRepository();
publish(publication, repository, repositoryUrl, false);
}
Aggregations