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.

add

abstract fun <T> add(name: String, publicType: Class<T>, configureAction: Action<in T>)(source)

Adds a model default for the project type specified by the given name.

Since

8.10

Parameters

name

the name of the project type

publicType

the public type of the project type

configureAction

the action to configure the project type