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.

canBuild

abstract fun canBuild(modelName: String): Boolean(source)

Indicates whether this builder can construct the given model.

Return

true if this builder can construct the model, false if not.

Since

1.6

Parameters

modelName

The model name, usually the same as the name of the Java interface used by the client.