api / org.gradle.tooling / ProjectConnection / model

model

abstract fun <T : Any> model(modelType: Class<T>): ModelBuilder<T>

Creates a builder which can be used to query the model of the given type.

Any of following models types may be available, depending on the version of Gradle being used by the target build:

A build may also expose additional custom tooling models. You can use this method to query these models.

Requires Gradle 1.0-milestone-8 or later.

Parameters

modelType - The model type

- The model type.

Return
The builder.

Since
1.0-milestone-3