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 add(element: T)(source)

Adds an element to the property value.

Since

4.5

Parameters

element

The element


abstract fun add(provider: Provider<out T>)(source)

Adds an element to the property value.

The given provider will be queried when the value of this property is queried. This property will have no value when the given provider has no value.

Since

4.5

Parameters

provider

The provider of an element