Carter
07/18/2023, 9:25 PMbuildList with this error.
Could not load the value of field `collection` of `kotlin.collections.builders.SerializedCollection` bean found in input property `$1` of task
Using mutableList<String>().apply {...} or buildList{...}.toList() is a workaround. Based on the error message, it sounds like buildList yields a non-serializable list while mutableList yields a serializable list.
I’m reproduced using Gradle 8.2.1 and Kotlin 1.9.0 with config cache enabled. (I know Gradle 8.2.1 is using Kotlin 1.8.20 for build scripts, but Kotlin 1.9.0 enabled me to turn config cache on.)ephemient
07/18/2023, 9:37 PMephemient
07/18/2023, 9:38 PMCarter
07/18/2023, 10:27 PMephemient
07/18/2023, 10:39 PMephemient
07/18/2023, 10:39 PMCarter
07/18/2023, 10:41 PMephemient
07/18/2023, 10:42 PM