# getByName

abstract fun getByName(name: String): ArtifactRepository(source)

Locates an object by name, failing if there is no such object.

This operation is eager and will cause the returned element to be realized.

abstract fun getByName(name: String, @DelegatesTo(value = ArtifactRepository::class) configureClosure: Closure): ArtifactRepository(source)

Locates an object by name, failing if there is no such object. The given configure closure is executed against the object before it is returned from this method. The object is passed to the closure as its delegate.

This operation is eager and will cause the returned element to be realized.

abstract fun getByName(name: String, configureAction: Action<in ArtifactRepository>): ArtifactRepository(source)

Locates an object by name, failing if there is no such object. The given configure action is executed against the object before it is returned from this method.

This operation is eager and will cause the returned element to be realized.