api / org.gradle.api / Project / provider

provider

@Incubating abstract fun <T : Any> provider(value: Callable<T>): Provider<T>

Creates a Provider implementation based on the provided value.

Parameters

value - The java.util.concurrent.Callable use to calculate the value.

Exceptions

org.gradle.api.InvalidUserDataException - If the provided value is null.

Return
The provider. Never returns null.

See Also
org.gradle.api.provider.ProviderFactory#provider(Callable)

Since
4.0