Thread
#multiplatform
    Javier

    Javier

    1 year ago
    I am having problems when I add
    kotlin.native.enableDependencyPropagation=false
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':project-name:compileIos64MainKotlinMetadata'.
    ...
    Caused by: org.jetbrains.kotlin.backend.konan.KonanCompilationException: Compilation finished with errors
    Is there something wrong in this setup? without
    kotlin.native.enableDependencyPropagation=false
    , it works
    kotlin.mpp.enableHierarchicalCommonization=false
    fixed the problem
    but it will not be available in Kotlin 1.5.30 😕
    russhwolf

    russhwolf

    1 year ago
    1.5.30 has a pretty big rewrite of the commonization internals so there's a decent chance the problem will go away anyway
    It's not clear to me what's going wrong for you from that snippet, though
    Javier

    Javier

    1 year ago
    I think it is correct, but
    platform
    and so on are missing
    I am going to try 1.5.30, thank you 🙂
    russhwolf

    russhwolf

    1 year ago
    If you don't have
    kotlin.native.enableDependencyPropagation=false
    I would expect IDE inference to fail for things like
    platform
    in the
    iosMain
    source
    Javier

    Javier

    1 year ago
    I am having the oposite behaviour, with it,
    platform
    is unresolved, if I remove it, it compiles
    Do you know what is the new maven repo for eap versions? I can’t find it in google, I remember it is a jetbrains space one…
    <https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/>
    1.5.30 has a different issue
    Could not determine the dependencies of task ':project-name:jvmJar'.
    > Could not create task ':project-name:compileKotlinJvm'.
       > Could not create task of type 'KotlinCompileWithWorkers'.
          > Could not create an instance of type org.jetbrains.kotlin.gradle.tasks.KotlinJavaToolchainProvider.
             > Could not generate a decorated class for type KotlinJavaToolchainProvider.
                > Cannot have abstract method KotlinJavaToolchain.getJdk().