@Incubating abstract fun <T : Any> provider(value: Callable<T>): Provider<T>
Creates a Provider
implementation based on the provided value.
value
- The java.util.concurrent.Callable
use to calculate the value.
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