asarazan

    asarazan

    1 year ago
    I’m not sure the right place for this question/request, but I would love to see an example project that includes kotless modules + KMM modules. Would be really nice to be able to have 100% of our codebases in a single project.
    gildor

    gildor

    1 year ago
    Looks that it should be pretty straightforward thing to do, just having separate modules, kotless just should be used for JVM modules only
    TanVD

    TanVD

    1 year ago
    Yep, for now this is the way)
    asarazan

    asarazan

    1 year ago
    I suspect a lot of the complexity falls on the KMM side, as I’ve struggled to stitch the gradle files together successfully up until now
    and the multiplatform module stuff is pretty sprawling
    I’m seeing this error when I embed kotless as a submodule in a kmm project:
    Execution failed for task ':ktor:local'.
    > org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(Lorg/jetbrains/kotlin/com/intellij/openapi/project/Project;Ljava/util/Collection;Lorg/jetbrains/kotlin/resolve/BindingTrace;Lorg/jetbrains/kotlin/config/CompilerConfiguration;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lorg/jetbrains/kotlin/com/intellij/psi/search/GlobalSearchScope;ILjava/lang/Object;)Lorg/jetbrains/kotlin/analyzer/AnalysisResult;
    I’ve upgraded kotlin deps to 1.4.10 — maybe that’s the culprit?
    Otherwise I probably just did a really bad job at configuring the plugins in gradle
    TanVD

    TanVD

    1 year ago
    Yep, right now 1.4.10 is not available. Use 1.3.72 😞
    asarazan

    asarazan

    1 year ago
    dohhhh, I suspect that precludes KMM then, given how tightly bound those two releases were. Willing to throw out a rough ETA on upgrade?
    TanVD

    TanVD

    1 year ago
    I believe it is a matter of ~month, we have to rework internal architecture to support 1.4.*
    The problem is that we use bundled compiler to introspect code and Gradle has 1.3.72 Kotlin that is not upgradable, we have to rework the whole introspection engine into compiler plugin 🙂
    gildor

    gildor

    1 year ago
    Gradle 6.8 (rc1 is available already) updated internal Kotlin (though, only Kotlin, target language feature is still 1.3)
    asarazan

    asarazan

    1 year ago
    Thanks for the info! Looking forward to merging my projects in the near future 🙂