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.
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.
action
- The action to use to configure the repository.
Return
The added repository.