You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Property<T>
assignment gradle#9268The text was updated successfully, but these errors were encountered: