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.

convention

abstract fun convention(@Nullable value: @Nullable Map<out K, out V>): MapProperty<K, V>(source)

Specifies the value to use as the convention for this property. The convention is used when no value has been set for this property.

Return

this

Since

5.1

Parameters

value

The value, or null when the convention is that the property has no value.


abstract fun convention(valueProvider: Provider<out Map<out K, out V>>): MapProperty<K, V>(source)

Specifies the provider of the value to use as the convention for this property. The convention is used when no value has been set for this property.

Return

this

Since

5.1

Parameters

valueProvider

The provider of the value.