api / org.gradle.nativeplatform / Repositories

Repositories

@Incubating interface Repositories : PolymorphicDomainObjectContainer<ArtifactRepository>

The repositories that Gradle will search for prebuilt libraries.

Inherited Functions

containerWithType

abstract fun <U : T> containerWithType(type: Class<U>): NamedDomainObjectContainer<U>

Creates a regular container that wraps the polymorphic container presenting all elements of a specified type.

create

abstract fun <U : T> create(name: String, type: Class<U>): U

Creates a domain object with the specified name and type, and adds it to the container.

abstract fun <U : T> create(name: String, type: Class<U>, configuration: Action<in U>): U

Creates a domain object with the specified name and type, adds it to the container, and configures it with the specified action.

maybeCreate

abstract fun <U : T> maybeCreate(name: String, type: Class<U>): U

Looks for an item with the given name and type, creating and adding it to this container if it does not exist.