Groovy Documentation

org.gradle.api.artifacts.maven
[Java] Interface MavenDeployer

org.apache.ivy.plugins.resolver.DependencyResolver
  org.gradle.api.artifacts.maven.MavenResolver
      org.gradle.api.artifacts.maven.MavenDeployer
All Superinterfaces:
DependencyResolver, MavenResolver

public interface MavenDeployer
extends MavenResolver

A resolver that can only be used for uploading artifacts to a Maven repository. If you use this resolver for getting dependencies from a Maven repository, an exception is thrown. This resolver support all aspects of Maven deployment, including snapshot deployment and metadata.xml manipulation.

You have to specify at least one repository. Otherwise, if there is only one artifact, usually there is not more to do. If there is more than one artifact you have to decide what to do about this, as a Maven pom can only deal with one artifact. There are two strategies. If you want to deploy only one artifact you have to specify a filter to select this artifact. If you want to deploy more than one artifact, you have to specify filters which select each artifact. Associated with each filter is a separate configurable pom.

You can create an instance of this type via the Upload.getRepositories container

Authors:
Hans Dockter


Groovy Documentation