Harlo, i have problem resolving the dependency to ...
# multiplatform
l
Harlo, i have problem resolving the dependency to the shared project. I created a new module called backend at the same level as the share project. This is the gradle file of the new module
Copy code
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    id("kotlin-platform-jvm")
    application
    kotlin("plugin.serialization")
    id("com.github.johnrengelman.shadow") version "7.1.2"
    id("com.github.ben-manes.versions") version "0.43.0"
}

dependencies {
    implementation(project(":shared"))

    with(Deps.Kotlinx) {
        implementation(serializationCore) // JVM depende
    }

    with(Deps.Coroutines){
        implementation(core)
    }
    
    with(Deps.Ktor) {
        implementation(serverCore)
        implementation(serverNetty)
        implementation(serverCors)
        implementation(contentNegotiation)
        implementation(json)
    }

    with(Deps.Log) {
        implementation(logback)
    }
}

tasks.withType<KotlinCompile> {
    kotlinOptions.jvmTarget = "1.8"
}

application {
    mainClass.set("ServerKt")
}
there is a implementation to have a dependency to the shared project. However, this is the error I got: backendmain: Could not resolve project :shared. Required by: project :backend Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
a
Share your
settings.gradle.kts
l
This is the setting file
Copy code
pluginManagement {
    repositories {
        google()
        gradlePluginPortal()
        mavenCentral()
    }
}

dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}

rootProject.name = "KMM_MFA_PoC"
include(":androidApp")
include(":shared")
include(":backend")
c
Did you ever find a solution for this?