gradle
8.4

# finalizeValue

abstract fun finalizeValue()(source)

Disallows further changes to the value of this property. Calls to methods that change the value of this property, such as set, set, value and value will fail, by throwing an `IllegalStateException`.

When this property's value is specified via a Provider, calling `finalizeValue()` will trigger the querying of the provider and the obtained value will be set as the final value of the property. The value of the provider will not be tracked further.

Note that although the value of the property will not change, the value itself may be a mutable object. Calling this method does not guarantee that the value will become immutable.