Line compile project(":core-common") work for actual module JVM. But when I compile actual module for Native, compiler can not find classes from core-common. How include this(core-common) module inside project-expect that make JVM and Native implementation is work?(I know that i can move all classes from core-common to project-expect and this will be working)
Not sure on this one, but I’d like to know too. Assuming you have enableMultiplatform true and the expectedBy and what not in the native project, I suspect that it’s just an issue w/ Kotlin native and transitive common multiplatform dependencies. Maybe try two separate expectedBy in the native project to each project specifically?
Could not find method artifact() for arguments [build_29i4eu4nawqtq9rs45te5qfkj$_run_closure1$_closure3$_closure4$_closure5@2b8ccd54] on object of type org.jetbrains.kotlin.gradle.plugin.KonanLibrariesSpec.
Sorry, it’s a method, so probably libraries { artifact project(':core') } or something similar. You can peek at the gradle plugin code anytime you are unsure about what you can and can’t do.