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

Tim Malseed

09/12/2020, 5:41 AM
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

william

09/13/2020, 3:44 PM
im having a similar problem, did you figure out anything for this?
t

Tim Malseed

09/13/2020, 11:35 PM
Not so far
g

Gurupad Mamadapur [FH]

09/18/2020, 9:52 AM
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

william

09/27/2020, 3:57 PM
I have opened this issue, please feel free to comment if you have similar issues https://youtrack.jetbrains.com/issue/KT-42227
👍 1
2 Views