Martmists
11/30/2025, 4:27 PM[ASSIGNMENT_TYPE_MISMATCH] Assignment type mismatch: actual type is 'String', but 'Property<String>' was expected. Is prop.set the only way to do this in current gradle versions?ephemient
11/30/2025, 5:02 PM*.gradle.kts, or at least I don't see how you could end up in a situation where it doesn't work…ephemient
11/30/2025, 5:02 PMkotlin-dsl plugin which enables the script-like syntax, or manually configure
plugins {
id("org.jetbrains.kotlin.plugin.assignment")
}
assignment {
annotation("org.gradle.api.SupportsKotlinAssignmentOverloading")
}
and import org.gradle.kotlin.dsl.assign in your .kt source fileMartmists
11/30/2025, 5:02 PMephemient
11/30/2025, 5:03 PMval?ephemient
11/30/2025, 5:08 PMAssign operator overload should NOT work for var properties/variables. Setter resolution logic should always have a priority even if type doesn’t match.
ephemient
11/30/2025, 5:15 PMorg.gradle.kotlin.kotlin-dsl.compiler-settings also applies
plugins {
id("org.jetbrains.kotlin.plugin.sam.with.receiver")
}
samWithReceiver {
annotation("org.gradle.api.HasImplicitReceiver")
}