You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like implementation("com.halilibo.compose-richtext:richtext-commonmark:0.16.0")
transitively pulls in the linux skiko runtime org.jetbrains.compose.desktop:desktop-jvm-linux-x64:1.2.0 not also on Linux, but also on Windows. I think that's broken. First I thought I had some thing misconfigured, but I can also track this down to the *.module files published on Central.
Here is a minimal example projects that produces the problem: https://github.com/sebkur/test-compose-for-desktop-richtext (it's a simple side by side markdown editor that shows the rendered markdown on the right side next to the source code, see screenshot below)
The program runs fine on Windows, however when producing an uber-jar or msi release, the native libraries are included for both Windows and Linux then on a Windows build. Given the sheer size of the native skiko library, this is rather suboptimal.
It looks like
implementation("com.halilibo.compose-richtext:richtext-commonmark:0.16.0")
transitively pulls in the linux skiko runtime
org.jetbrains.compose.desktop:desktop-jvm-linux-x64:1.2.0
not also on Linux, but also on Windows. I think that's broken. First I thought I had some thing misconfigured, but I can also track this down to the*.module
files published on Central.richtext-commonmark-0.16.0.module seems to declare a dependency on
richtext-commonmark-jvm
:and in turn richtext-commonmark-jvm-0.16.0.module declares a dependency on
org.jetbrains.compose.desktop:desktop-jvm-linux-x64:1.2.0
:It's also verifiable on the command line by showing the dependencies using
./gradlew dependencies
where the dependency shows up on Linux and Windows:Here is a minimal example projects that produces the problem: https://github.com/sebkur/test-compose-for-desktop-richtext (it's a simple side by side markdown editor that shows the rendered markdown on the right side next to the source code, see screenshot below)
The program runs fine on Windows, however when producing an uber-jar or msi release, the native libraries are included for both Windows and Linux then on a Windows build. Given the sheer size of the native skiko library, this is rather suboptimal.
That's almost 30mb native code that gets packaged into the windows binaries.
I can work around the issue by excluding the linux runtime:
The text was updated successfully, but these errors were encountered: