heya, I’m migrating groovy files to kotlin script....
# gradle
d
heya, I’m migrating groovy files to kotlin script. i have the following block defined in a seaprate groovy file, which I can’t figure how to use in kotlin
Copy code
ext.flavorConfig = {
    flavorDimensions(*dimensions)
    productFlavors {
        with flavors
    }
    sourceSets {
        with sources
    }
}
so far in groovy I used it like:
with flavorConfig
. How would that look like in Kotlin?
s
Something like this?
Copy code
val flavorConfig: Closure<*> by ext
apply(flavorConfig)