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

jbruckne

03/29/2021, 6:05 PM
How does a gradle project specify which target of a multiplatform library to consume. Like if I publish both jvm and android targets from a kmm library project, can I then specify something like 
implementation('com.example:MyKMMProject-jvm:1.0')
  in the host gradle project?
t

Trevor Stone

03/29/2021, 6:10 PM
you don't need the -jvm. The gradle metadata module will resolve the correct version for you
so if you are on an android project it will try android -> jvm
if it is just a jvm project it will know to ignore the android dependency
👍 1