According to https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#adding-dependencies, dependencies should be of type api or implementation.
That makes perfectly sense to me.
However, the example at https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#setting-up-a-multiplatform-project
sourceSets {
val commonMain by getting {
dependencies {
implementation(kotlin("stdlib-common"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
...
}
suggests that dependencies to the Kotlin std-lib should be of type implementation.
This I don’t understand.
I would have expected this dependencies to be of type api because every library uses for example the Kotlin types Int, String, List, …
What am I missing?