# mapProperty

inline fun <K : Any, V : Any> ObjectFactory. mapProperty(keyType: KClass<K>, valueType: KClass<V>): MapProperty<K, V>(source)
inline fun <K : Any, V : Any> ObjectFactory. mapProperty(keyType: KClass<K>, valueType: KClass<V>): MapProperty<K, V>(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.model.ObjectFactory.mapProperty.

#### Since

5.1

#### See also

org.gradle.api.model.ObjectFactory.mapProperty

inline fun <K : Any, V : Any> ObjectFactory. mapProperty(): MapProperty<K, V>(source)

Creates a MapProperty that holds values of the given key type K and value type V.

#### Since

5.6

#### See also

ObjectFactory.mapProperty