will generate two identically named jars, which breaks packaging with Conveyor -- the second jar to be ingested will overwrite the first, leading to java.lang.NoClassDefFoundError: org/jetbrains/compose/resources/DrawableResource at runtime.
Having duplicate jar names will also make stack traces less useful.
This may not technically be a bug, but it feels like an oversight.
Affected platforms
Desktop (Windows, Linux, macOS)
Versions
Kotlin version*:
Compose Multiplatform version*: 1.6.0
OS version(s)* (required for Desktop and iOS issues): Windows 11
OS architecture (x86 or arm64): x86
JDK (for desktop issues): Temurin 21
To Reproduce
Make a compose desktop project, and add both dependencies.
Expected behavior
The jars generated are named differently.
Screenshots
Packaging with the built-in packager works only because of the hash appended to the jar name.
Describe the bug
compose.components.resources
andcompose.components.uiToolingPreview
both generate a jar namedlibrary-desktop-1.6.0.jar
Depending on both, along the lines of:
will generate two identically named jars, which breaks packaging with Conveyor -- the second jar to be ingested will overwrite the first, leading to
java.lang.NoClassDefFoundError: org/jetbrains/compose/resources/DrawableResource
at runtime.Having duplicate jar names will also make stack traces less useful.
This may not technically be a bug, but it feels like an oversight.
Affected platforms
Versions
To Reproduce Make a compose desktop project, and add both dependencies.
Expected behavior The jars generated are named differently.
Screenshots Packaging with the built-in packager works only because of the hash appended to the jar name.
Additional context