api / org.gradle.api.provider / Property / set


abstract fun set(value: T): Unit

Sets the value of the property the given value.

This method can also be used to clear the value of the property, by passing null as the value.


value - The value, can be null.

abstract fun set(provider: Provider<out T>): Unit

Sets the property to have the same value of the given provider. This property will track the value of the provider and query its value each time the value of the property is queried. When the provider has no value, this property will also have no value.


provider - Provider