Thread
#multiplatform
    j

    jeggy

    2 years ago
    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

    2 years ago
    You mean
    subprojects {
    ?
    If yes - instead of
    kotlin {
    block you can use
    subprojects {
        apply(plugin = "kotlin-multiplatform")
    
        configure<KotlinMultiplatformExtension> {
    rnett

    rnett

    2 years ago
    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

    2 years ago
    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