I can’t understand why my jvm module ( commandline
) cannot resolve dependencies from other multiplatform modules ( my source code only ) anymore.
For example I got a
domain
like
kotlin {
jvm()
js()
sourceSets {
val commonMain by getting {
dependencies {
api(`kotlin-common`)
api(`coroutines-core-common`)
}
}
val jvmMain by getting {
dependencies {
api(`kotlin-jdk8`)
api(`coroutines-core`)
}
}
}
}
and got
commandline
like
kotlin {
sourceSets {
val main by getting {
dependencies {
implementation(project(":domain")
}
}
}
}
But it can resolve all the dependencies exposed by
api
in domain ( kotlin, coroutines, koin, etc ), but cannot resolve from my sourceSet ( like
my.project.domain.MyClass
)
For some reason it was working before, I think it stopped to work after I added an android module ( which, differently from
commainline
, it’s working flawlessly )
#FYI: I got
enableFeaturePreview("GRADLE_METADATA")