api / org.gradle.api.artifacts.dsl / RepositoryHandler / maven

maven

abstract fun maven(closure: Closure<Any>): MavenArtifactRepository

Adds and configures a Maven repository. Newly created instance of MavenArtifactRepository is passed as an argument to the closure.

Parameters

closure - The closure to use to configure the repository.

Return
The added repository.

abstract fun maven(action: Action<in MavenArtifactRepository>): MavenArtifactRepository

Adds and configures a Maven repository.

Parameters

action - The action to use to configure the repository.

Return
The added repository.