Kotlin DSL currently doesn't support an assignment for type Property as Groovy, but .set(T) have to be used. The goal is, that for types with inputs of type Property<T> we support =. This will ease the migration to Provider API for existing scripts and make the use of Provider API for new scripts more compelling.
Example
Types:
public interface Extension {
Property<String> getDescription();
}
public interface OtherExtension {
Property<String> getDescription();
}
Kotlin DSL currently doesn't support an assignment for type
Property
as Groovy, but.set(T)
have to be used. The goal is, that for types with inputs of typeProperty<T>
we support=
. This will ease the migration to Provider API for existing scripts and make the use of Provider API for new scripts more compelling.Example Types:
Current DSL:
New DSL (
.set(T)
will still work):In 8.1. we will introduce opt-in Kotlin lazy property assignment.
Related issue: