api / org.gradle.api.tasks / WriteProperties / property

property

open fun property(name: String, value: Any): Unit

Adds a property to be written to the properties file.

A property's value will be coerced to a String with String#valueOf(Object) or a Callable returning a value to be coerced into a String.

Values are not allowed to be null.

Parameters

name - Name of the property

value - Value of the property

Since
3.4