Any way to make property delegation work for getti...
# multiplatform
k
Any way to make property delegation work for getting source sets in custom Gradle build logic plugin?
got these imports but doesn’t seem to work:
Copy code
import org.gradle.kotlin.dsl.getting
import org.gradle.kotlin.dsl.provideDelegate
d
Do you have the
{}
?
val iosMain by getting {}
k
{}
is n’t necessary if I just wanna get a source set
Adding
import org.gradle.kotlin.dsl.getValue
import works 🤪
🤌
a
I find often it's easier just to add a wildcard import to avoid weirdness like that
Copy code
import org.gradle.kotlin.dsl.*
You can tell the IntelliJ formatter to wildcard import that package by default