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
lptr
changed the title
Consider supporting Kotlin assingment overload for ConfigurableFileCollection
Consider supporting assignment overload for ConfigurableFileCollection
Jan 16, 2023
Note that Groovy doesn't support ConfigurableFileCollection = FileCollection or ConfigurableFileCollection += FileCollection. It throws:
Caused by: groovy.lang.GroovyRuntimeException: Cannot set the value of read-only property 'col' for task ':app2:myTask' of type MyTask.
at org.gradle.internal.metaobject.AbstractDynamicObject.setReadOnlyProperty(AbstractDynamicObject.java:134)
at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.setProperty(BeanDynamicObject.java:372)
at org.gradle.internal.metaobject.BeanDynamicObject.trySetProperty(BeanDynamicObject.java:181)
at org.gradle.internal.metaobject.CompositeDynamicObject.trySetProperty(CompositeDynamicObject.java:66)
at org.gradle.internal.metaobject.AbstractDynamicObject.setProperty(AbstractDynamicObject.java:74)
at MyTask_Decorated.setProperty(Unknown Source)
Let's check out if it works already with Groovy. Even if we don't support
FileCollection = [File]
, we could consider adding it.Let's consider supporting
+=
in Kotlin as well. Groovy already supportsFileCollection += FileCollection
.cc: @gradle/bt-execution
The text was updated successfully, but these errors were encountered: