i have a multi module build. in my parent build.gr...
# gradle
t
i have a multi module build. in my parent build.gradle i used
Copy code
plugins {
    id "org.jetbrains.kotlin.multiplatform" version '1.3.41' apply false
}
now i finally wanted to try out the kotlin dsl and creaed a child module with a build.gradle.kts where i use
Copy code
apply(plugin = "org.jetbrains.kotlin.multiplatform")
but now the
kotlin { }
block cannot be resolved what am i doing wrong?
ok using
Copy code
plugins {
    kotlin("multiplatform")
}
it works
a
hi. in kotlin-dsl if you apply plugin delayed you should call configure with class of plugin-config. like:
Copy code
apply<BinderAdapterPlugin>()

configure<com.icerockdev.binderadapter.Configuration> {
    classesPackage = "com.getchallenge.features.feed.browse"
    dataBindingPackage = "com.getchallenge.features.feed.browse"
    sourceSet = "androidMain"
}
t
this looks quite complicated... what are the advantages going this way?
a
I don’t see any advantages, it was just that in my case it was necessary to use the plugin after configuring other blocks
so if you can use plugins without
apply false
- use it 🙂
t
ah i see, thank you 🙂