# MetadataSupplierAware

interface MetadataSupplierAware(source)

Interface for repositories which support custom metadata suppliers and/or version listers. A custom version lister or metadata supplier can be used as an optimization technique to avoid too many requests on a server. By providing such rules, a plugin or build author can provide the necessary information to perform component selection without having to actually fetch the component metadata on a server.

#### Since

4.9

#### Inheritors

IvyArtifactRepository
MavenArtifactRepository

## Functions

setComponentVersionsLister
Link copied to clipboard
abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>)
abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>, configureAction: Action<in ActionConfiguration>)
Sets a custom component versions lister.
setComponentVersionsLister
Link copied to clipboard
inline fun MetadataSupplierAware. setComponentVersionsLister(lister: KClass<out ComponentMetadataVersionLister>)
inline fun MetadataSupplierAware. setComponentVersionsLister(lister: KClass<out ComponentMetadataVersionLister>, configureAction: Action<in ActionConfiguration>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.repositories.MetadataSupplierAware.setComponentVersionsLister.

setMetadataSupplier
Link copied to clipboard
abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>)
Sets a custom metadata rule, which is capable of supplying the metadata of a component (status, status scheme, changing flag) whenever a dynamic version is requested.
abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>, configureAction: Action<in ActionConfiguration>)
Sets a custom metadata rule, possibly configuring the rule.
setMetadataSupplier
Link copied to clipboard
inline fun MetadataSupplierAware. setMetadataSupplier(rule: KClass<out ComponentMetadataSupplier>)
inline fun MetadataSupplierAware. setMetadataSupplier(rule: KClass<out ComponentMetadataSupplier>, configureAction: Action<in ActionConfiguration>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.repositories.MetadataSupplierAware.setMetadataSupplier.