I'm trying to set up a multi platform project, wit...
# multiplatform
t
I'm trying to set up a multi platform project, with two modules,
shared
and
desktop
. 'Shared' is the typical
multiplatform
gradle project, declaring
commonMain
and
jvmMain
sourcesets. 'Desktop' depends on 'shared', via:
Copy code
implementation(project(":shared"))
However, the 'shared' source files don't seem to be available to the 'desktop' module. Do I need to do something special to 'publish' shared, or otherwise make it accessible to other modules?
w
im having a similar problem, did you figure out anything for this?
t
Not so far
g
Nope just
implementation project(":shared")
in the dependencies of the module where you want it should do. Can you share both the gradle files?
w
I have opened this issue, please feel free to comment if you have similar issues https://youtrack.jetbrains.com/issue/KT-42227
👍 1