Thread
#multiplatform
    g

    GarouDan

    3 years ago
    Hi, it looks like we have a problem when integrating the
    kotlin("multiplatform")
    and spring boot. I’ve filed an issue about that here: https://youtrack.jetbrains.com/issue/KT-30340 I was talking with the folks in the spring boot gitter chat and they said:
    but I would guess that, unlike, the JVM platform plugin, it doesn't apply Gradle's Java plugin
    If someone knows how to fix this please tell me 😃
    bdeg

    bdeg

    3 years ago
    I had the same issue, the only fix I founded so far is to create another module for spring boot and use the multi-platform jvm variant as a dependency.
    You can still use spring annotations or dependencies in multi platform project jvm sourceset. If you use spring boot annotations to configure stuff you can define them as optional expectations.
    g

    GarouDan

    3 years ago
    Hum, interesting, I did something similar (I started to use the
    id("kotlin-platform-jvm")
    plugin as a workaround but this doesn’t really solve the problem). Do you have a
    build.gradle
    or a
    build.gradle.kts
    so I could take a look?
    a

    Alexey Belkov [JB]

    3 years ago