api / org.gradle.nativeplatform / PrebuiltLibraries

PrebuiltLibraries

@Incubating interface PrebuiltLibraries : ArtifactRepository, NamedDomainObjectSet<PrebuiltLibrary>

A container of PrebuiltLibrary instances.

Functions

resolveLibrary

abstract fun resolveLibrary(name: String): PrebuiltLibrary

Inherited Functions

findAll

abstract fun findAll(spec: Closure<Any>): MutableSet<T>

{@inheritDoc}

getName

abstract fun getName(): String

Returns the name for this repository. A name must be unique amongst a repository set. A default name is provided for the repository if none is provided.

The name is used in logging output and error reporting to point to information related to this repository.

matching

abstract fun matching(spec: Spec<in T>): NamedDomainObjectSet<T>
abstract fun matching(spec: Closure<Any>): NamedDomainObjectSet<T>

{@inheritDoc}

setName

abstract fun setName(name: String): Unit

Sets the name for this repository. If this repository is to be added to an org.gradle.api.artifacts.ArtifactRepositoryContainer (including org.gradle.api.artifacts.dsl.RepositoryHandler), its name cannot be changed after it has been added to the container.

withType

abstract fun <S : T> withType(type: Class<S>): NamedDomainObjectSet<S>

{@inheritDoc}