api / org.gradle.api.plugins / MavenRepositoryHandlerConvention / mavenInstaller

mavenInstaller

abstract fun mavenInstaller(): MavenResolver

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

Return
The added repository

See Also
#mavenInstaller(java.util.Map, groovy.lang.Closure)

abstract fun mavenInstaller(configureClosure: Closure<Any>): MavenResolver

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

Parameters

configureClosure - A closure to use to configure the repository.

Return
The added repository

See Also
#mavenInstaller(java.util.Map, groovy.lang.Closure)

abstract fun mavenInstaller(configureAction: Action<in MavenResolver>): MavenResolver

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

Parameters

configureAction - The action to use to configure the repository.

Return
The added repository

See Also
#mavenInstaller(Map, Action)

Since
4.2

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.

Parameters

args - The argument to create the repository

Return
The added repository

See Also
#mavenInstaller(java.util.Map, groovy.lang.Closure)

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

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

Parameters

args - The argument to create the repository

configureClosure - A closure to use to configure the repository.

Return
The added repository

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.

Parameters

args - The argument to create the repository

configureAction - The action to use to configure the repository.

Return
The added repository

Since
4.2