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.

put

abstract fun put(key: K, value: V)(source)

Adds a map entry to the property value.

Since

5.1

Parameters

key

the key

value

the value


abstract fun put(key: K, providerOfValue: Provider<out V>)(source)

Adds a map entry 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

5.1

Parameters

key

the key

providerOfValue

the provider of the value