https://kotlinlang.org logo
j

jeggy

09/19/2020, 10:42 PM
I have successfully setup a multiplatform project. But I want to have my project as a multiplatform multi project. so I'm wrapping it all inside the
allprojects
and this works fine, but as soon as I add a
include
to my
settings.gradle.kts
file I immedietally get this error:
Extension with name 'kotlin' does not exist. Currently registered extension names: [ext]
. Does anyone know how to setup a multiplatform multi project using kotlin gradle script? or is this something that's not possible yet?
m

msink

09/20/2020, 12:39 AM
You mean
subprojects {
?
If yes - instead of
kotlin {
block you can use
Copy code
subprojects {
    apply(plugin = "kotlin-multiplatform")

    configure<KotlinMultiplatformExtension> {
r

rnett

09/20/2020, 2:57 AM
I have this set up, but without using allprojects. The parent project includes the multiplatform plugin (and jvm cause I have a few jvm-only children), children apply and configure it
j

jeggy

09/20/2020, 3:49 PM
I used
allprojects
previously, but I don't know why, I just try stuff out until it works, which is hard 😛 Do you know if there are any examples of this on GitHub or somewhere_(not as big as ktor though)_
Will try to see if I can get something to work by following their setup
2 Views