Open LarsArtmann opened 2 years ago
It looks like a Kotlin plugin issue, not a Compose one. Why don't you just use two separate JVM gradle modules?
One is for the data model I want to reuse in the backend the other one is the desktop jvm frontend.
Data Model could be put to the common module and you can have two separate jvm modules, both referencing it. Will it work for you?
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
``I know the documentation says two java modules are not possible but it would really help me if it is and my testing doesn't suggest it is the case, anyway I got this error message that I couldn't find a fix for:
"w: Default configuration for Compose Desktop Application is disabled: multiple Kotlin JVM targets definitions are detected. Specify, which target to use by using
compose.desktop.application.from(kotlinMppTarget)
"My build.gradle.kts