Gleb Minaev
09/03/2022, 5:04 PMexample
. But when I just add the new target Gradle sync fails saying that each of jvmMain
, exampleMain
, jvmTest
and exampleTest
source sets can not determine which artifacts of dependency projects to use, jvm
or example
ones. How can I specify which target to depend on? Or how to "hide" some targets from depending on (and publishing)?Gleb Minaev
09/03/2022, 5:13 PMexample
source set would depend on another example
target instead of jvm
one, which is not good but bearable.tapchicoma
09/05/2022, 1:19 PMAnton Lakotka [JB]
09/05/2022, 1:25 PMHow can I specify which target to depend on? Or how to "hide" some targets from depending on (and publishing)You need to use disambiguation attribute: https://kotlinlang.org/docs/multiplatform-set-up-targets.html#distinguish-several-targets-for-one-platform But why do you need a separate target? while you can use separate Kotlin Source Set. Could you describe your need for "example" targets thoroughly?
Gleb Minaev
09/05/2022, 4:30 PM