api / org.gradle.api.artifacts.repositories / MetadataSupplierAware / setComponentVersionsLister

setComponentVersionsLister

abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>): Unit

Sets a custom component versions lister. A versions lister will be called whenever a dynamic version is requested.

Parameters

lister - the class of the lister.

Since
4.9

abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>, configureAction: Action<in ActionConfiguration>): Unit

Sets a custom component versions lister. A versions lister will be called whenever a dynamic version is requested.

Parameters

lister - the class of the lister.

configureAction - the action to use to configure the lister.

Since
4.9