hmm ok. well if anyone has a couple minutes to loo...
# multiplatform
w
hmm ok. well if anyone has a couple minutes to look over my setup, i would appreciate it: https://github.com/wakingrufus/text-adventure I am trying to get the jvm project
my-game-jvm-terminal
to depend on the mpp
text-adventure-terminal
and I am getting
Copy code
e: /home/rufus/code/text-adventure/my-game-jvm-terminal/src/main/kotlin/com/github/wakingrufus/mygame/Main.kt: (5, 5): Unresolved reference: playInTerminal
i
probably wont help you solve your issue but I actually created a somewhat similar style 'game' as a demonstration for my state machine library https://github.com/ToxicBakery/kfin-state-machine/tree/master/samples/dungeon MPP is used for the common/jvm code and the game is pure jvm
w
nice! yeah there is a lot of similarity here. i notice you are specifying specific configurations in your project dependencies, I wonder if I have to do something similar
i
nice!
s
I don't know exacly how to archive this in the gradle file, but if you go to project structure -> modules -> 'my-game-jvm-terminal' -> 'main', dependencies and than add module dependencies (right side with a +) and choose 'text-adventure-terminal.commonMain it should work. (I assume you are using Intellij IDEA)
i
I'm guessing what you are suggesting @Sabrina Namur is a way to allow specifying which configuration of the dependency to use. You can accomplish it the same way you do with normal maven dependencies.
implementation project(path: ':common', configuration: 'jvmRxRuntimeElements')
w
Adding the configuration parameter worked, thanks
🎉 1