@HasImplicitReceiver interface Action<T : Any>
Performs some action against objects of type T.
- The type of object which this action accepts.
abstract fun execute(t: T): Unit
Performs this action against the given object. |
operator fun <T> Action<in T>.invoke(target: T): Unit
Enables function invocation syntax on Action references. |
interface AttributeCompatibilityRule<T : Any> : Action<CompatibilityCheckDetails<T>>
A rule that determines whether a given attribute value is compatible some provided attribute value. |
|
interface AttributeDisambiguationRule<T : Any> : Action<MultipleCandidatesDetails<T>>
A rule that selects the best value out of a set of two or more candidates. |
|
interface ComponentMetadataRule : Action<ComponentMetadataContext>
A rule that modify ComponentMetadataDetails. |
|
interface ComponentMetadataSupplier : Action<ComponentMetadataSupplierDetails>
A component metadata rule is responsible for providing the initial metadata of a component from a remote repository, in place of parsing the descriptor. Users may implement a provider to make dependency resolution faster. |
|
interface ComponentMetadataVersionLister : Action<ComponentMetadataListerDetails>
Interface for custom version listers. A version lister is reponsible for returning the list of versions of a module which are available in a specific repository. For this, Gradle is going to call the lister once for each module it needs the list of versions. This will typically happen in case a dynamic version is requested, in which case we need to know the list of versions published for this module. It will not, however, be called for fixed version numbers. |