bod
09/19/2026, 5:11 PM1.13.0-alpha01, the dependency compose.desktop.currentOs is deprecated and says it's no longer needed and can simply be removed. But if I do that, androidx.compose.ui.window.* imports are no longer found.
I suppose another dependency is needed instead? [Looks like the KMP wizard/template still uses that dependency]bod
09/19/2026, 5:29 PMorg.jetbrains.compose.desktop:desktop-jvm
All good โ
Hubert Blaszczyk
09/21/2026, 9:15 AMorg.jetbrains.compose.ui:ui explicitly added as a dependency anywhere for desktop/common?
The org.jetbrains.compose.desktop:desktop-jvm module doesn't contain anything special by itself. If you look at it, it's mostly a collection of deprecated declarations. What it does however, is transitively pull in other Compose modules such as Compose UI.
There should be no need for a desktop-specific dependency anymore. Instead, you can declare the required Compose dependencies explicitly just as you would for other targetsbod
09/21/2026, 9:19 AMandroidx.compose.ui.window.*? That's Desktop specific, right?bod
09/21/2026, 9:21 AMdesktop module depends on my shared module, which depends on org.jetbrains.compose.ui:ui, but as implementation, not as api)bod
09/21/2026, 9:22 AMorg.jetbrains.compose.desktop:desktop-jvm and making the ui one as api worked. Not sure I understand why though ๐
bod
09/21/2026, 9:25 AMorg.jetbrains.compose.ui:ui-desktop . Ok makes sense โ
Thanks!Hubert Blaszczyk
09/21/2026, 10:16 AM(myYou can just addmodule depends on mydesktopmodule, which depends onshared, but asorg.jetbrains.compose.ui:ui, not asimplementation)api
org.jetbrains.compose.ui:ui with implementation as a replacement of currentOs then. I believe this is what webApp from KMP wizard has for web target which also needs androidx.compose.ui.window.*bod
09/21/2026, 10:17 AM