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

elect

11/09/2023, 11:18 AM
is it normal that
jvmMain
doesn't inherit the dependencies from
commonMain
?
m

mbonnin

11/09/2023, 11:19 AM
It should if Gradle metadata is correctly published. Do you have an example?
e

elect

11/09/2023, 11:20 AM
its a wip atm, but if you want you can take a look
m

mbonnin

11/09/2023, 11:20 AM
Technically the
commonMain
dependencies are different from the
jvmMain
so it's not really "inheriting"
e

elect

11/09/2023, 11:20 AM
yeah, that's what I though
but wouldn't make actually sense to inherit them?
m

mbonnin

11/09/2023, 11:20 AM
What usually happens is that the
commonMain
dependency contains pointers to the different platform-specific dependencies
There's no JVM bytecode in a
commonMain
dependency so you can't really inherit it
e

elect

11/09/2023, 11:21 AM
It should if Gradle metadata is correctly published. Do you have an example?
Ah wait, I understand now what you meant
m

mbonnin

11/09/2023, 11:22 AM
e

elect

11/09/2023, 11:22 AM
lib is this, published here
m

mbonnin

11/09/2023, 11:23 AM
This look like a plain JVM publication, not multiplatform?
e

elect

11/09/2023, 11:24 AM
it's really pretty vanilla, I didn't mess around a lot with options
it's a MP now
👍 1
m

mbonnin

11/09/2023, 11:24 AM
Ah no sorry, there is some native stuff 👍
m

mbonnin

11/09/2023, 11:25 AM
If you depend on
unsigned
in
commonMain
, I would expect
unsigned-jvm
jar to be available in
jvmMain
. But didn't look in details so maybe there's more to it
e

elect

11/09/2023, 11:26 AM
ok, then I'm doing something wrong somewhere, good 😄
m

mbonnin

11/09/2023, 11:30 AM
Works for me
(2nd screenshot is in jvmMain)
e

elect

11/09/2023, 11:30 AM
😕