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.

getting

abstract fun getting(key: K): Provider<V>(source)

Returns a provider that resolves to the value of the mapping of the given key. It will have no value if the property has no value, or if it does not contain a mapping for the key.

The returned provider tracks changes to this property and resolves its value dynamically when queried. It also inherits the task dependencies of all entries in the map, if any.

This method is equivalent to


    map(m -> m.get(key))
but possibly more efficient.

Return

a Provider for the value

Since

5.1

Parameters

key

the key