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.

fetch

inline fun <M : Any> BuildController.fetch(target: Model, modelType: KClass<M>): FetchModelResult<M>(source)
inline fun <M : Any> BuildController.fetch(target: Model, modelType: KClass<M>): FetchModelResult<M>(source)
inline fun <M : Any, P : Any> BuildController.fetch(modelType: KClass<M>, parameterType: KClass<P>, parameterInitializer: Action<in P>): FetchModelResult<M>(source)
inline fun <M : Any, P : Any> BuildController.fetch(modelType: KClass<M>, parameterType: KClass<P>, parameterInitializer: Action<in P>): FetchModelResult<M>(source)
inline fun <M : Any, P : Any> BuildController.fetch(target: Model, modelType: KClass<M>, parameterType: KClass<P>, parameterInitializer: Action<in P>): FetchModelResult<M>(source)
inline fun <M : Any, P : Any> BuildController.fetch(target: Model, modelType: KClass<M>, parameterType: KClass<P>, parameterInitializer: Action<in P>): FetchModelResult<M>(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.tooling.BuildController.fetch.

Since

9.3.0

See also