https://kotlinlang.org logo
Title
p

PHondogo

07/18/2019, 12:35 PM
Hello! When I use apply(plugin="org.jetbrains.kotlin.multiplatform") kotlin { // <- error failed to resolve symbol .... } But configure<KotlinMultiplatformExtension> { // ok .... } When plugins{ kotlin("multiplatform") version "1.3.41" } kotlin { // <- OK .... } How can I make last variant work with apply construction? I need it cause I'm applying it in my custom gradle plugin and now it is not possible to use plugins in this case.
e

eskatos

07/18/2019, 12:36 PM
Short answer, you can’t. It’s working as expected. See https://docs.gradle.org/current/userguide/kotlin_dsl.html#type-safe-accessors
p

PHondogo

07/18/2019, 12:45 PM
Thanks a lot!
e

eskatos

07/18/2019, 1:18 PM
Happy to help 🙂