For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

orElse

abstract fun orElse(value: T): PresentProvider<T>(source)

Returns this provider, as the value is always present and the given default value can never be used.

Return

this provider.

Since

9.9.0

Parameters

value

The default value to use when this provider has no value. Never used.


abstract fun orElse(provider: Provider<out T>): PresentProvider<T>(source)

Returns this provider, as the value is always present and the given default provider can never be used.

Return

this provider.

Since

9.9.0

Parameters

provider

The default provider to use when this provider has no value. Never used.