model

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

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.

Return

The builder.

Since

1.0-milestone-3

Parameters

modelType

The model type

<T>

The model type.