https://kotlinlang.org logo
#gradle
Title
j

Joost Klitsie

10/03/2020, 11:51 AM
Hi all! I have a gradle project, containing: JVM Ktor backend Common KMP some KMP project frontend I want to share code with the backend and frontend. From the backend, I would like to include the Common module:
Copy code
plugins {
    kotlin("jvm")
    kotlin("plugin.serialization")
    application
}
// dependencies
implementation(project(":common"))
However, IDEA will not resolve imports if I do it like this. I do think intellij does build my project successfully, just evetything shows up red in the code. If I simply export the common library to my local maven, I can import it from there easily and intellij resolves everything but this shouldn't be necessary