api / org.gradle.api.plugins / MavenRepositoryHandlerConvention

MavenRepositoryHandlerConvention

interface MavenRepositoryHandlerConvention

Allows Maven repositories for publishing artifacts to be defined. The Maven plugin mixes-in this interface to the org.gradle.api.artifacts.dsl.RepositoryHandler associated with each task of type org.gradle.api.tasks.Upload.

Properties

DEFAULT_MAVEN_DEPLOYER_NAME

static val DEFAULT_MAVEN_DEPLOYER_NAME: String

DEFAULT_MAVEN_INSTALLER_NAME

static val DEFAULT_MAVEN_INSTALLER_NAME: String

Functions

mavenDeployer

abstract fun mavenDeployer(): GroovyMavenDeployer
abstract fun mavenDeployer(configureClosure: Closure<Any>): GroovyMavenDeployer
abstract fun mavenDeployer(configureAction: Action<in GroovyMavenDeployer>): GroovyMavenDeployer
abstract fun mavenDeployer(args: MutableMap<String, *>, configureClosure: Closure<Any>): GroovyMavenDeployer
abstract fun mavenDeployer(args: MutableMap<String, *>, configureAction: Action<in GroovyMavenDeployer>): GroovyMavenDeployer

Adds a repository for publishing to a Maven repository. This repository can not be used for resolving dependencies.

abstract fun mavenDeployer(args: MutableMap<String, *>): GroovyMavenDeployer

Adds a repository for publishing to a Maven repository. This repository can not be used for resolving dependencies. The following parameter are accepted as keys for the map: Key Description of Associated Value name (optional) The name of the repository. The default is mavenDeployer-{SOME_ID}. The name is used in the console output, to point to information related to a particular repository. A name must be unique amongst a repository group.

mavenInstaller

abstract fun mavenInstaller(): MavenResolver
abstract fun mavenInstaller(configureClosure: Closure<Any>): MavenResolver
abstract fun mavenInstaller(configureAction: Action<in MavenResolver>): MavenResolver
abstract fun mavenInstaller(args: MutableMap<String, *>, configureClosure: Closure<Any>): MavenResolver
abstract fun mavenInstaller(args: MutableMap<String, *>, configureAction: Action<in MavenResolver>): MavenResolver

Adds a repository for installing to a local Maven cache. This repository can not be used for resolving dependencies.

abstract fun mavenInstaller(args: MutableMap<String, *>): MavenResolver

Adds a repository for installing to a local Maven cache. This repository can not be used for resolving dependencies. The following parameter are accepted as keys for the map: Key Description of Associated Value name (optional) The name of the repository. The default is mavenInstaller-{SOME_ID}. The name is used in the console output, to point to information related to a particular repository. A name must be unique amongst a repository group.