Artifact Repository Container
A ResolverContainer
is responsible for managing a set of ArtifactRepository instances. Repositories are arranged in a sequence.
You can obtain a ResolverContainer
instance by calling getRepositories or using the repositories
property in your build script.
The resolvers in a container are accessible as read-only properties of the container, using the name of the resolver as the property name. For example:
repositories.maven { name = 'myResolver' }
repositories.myResolver.url = uri('some-url')
A dynamic method is added for each resolver which takes a configuration closure. This is equivalent to calling getByName. For example:
repositories.maven { name = 'myResolver' }
repositories.myResolver {
url = uri('some-url')
}
Inheritors
Properties
Functions
Locates an object by name and casts it to the expected type T.
Locates an object by name and casts it to the expected type T then configures it.
Locates an object by name and casts it to the expected type.
Locates an object by name and casts it to the expected type then configures it.
Locates an object by name and type, without triggering its creation or configuration, failing if there is no such object.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.named.
Configures an object by name and type, without triggering its creation or configuration, failing if there is no such object.
Allows a NamedDomainObjectCollection to be used as a property delegate.
Returns a collection containing the objects in this collection of the given type. The returned collection is live, so that when matching objects are later added to this collection, they are also visible in the filtered collection.
Returns a collection containing the objects in this collection of the given type. Equivalent to calling withType(type).all(configureAction)
.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectCollection.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectList.withType.