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.

of

abstract fun <T, P : ValueSourceParameters?> of(valueSourceType: Class<out ValueSource<T, P>>, configuration: Action<in ValueSourceSpec<P>>): Provider<T>(source)

Creates a Provider whose value is obtained from the given ValueSource.

Return

the provider, never returns null

Since

6.1

Parameters

valueSourceType

the type of the ValueSource

configuration

action to configure the parameters to the given ValueSource