I wouldn't consider that being ideal, but rather a side effect of Compose still being in early development. The team behind has explained that currently compose depends on some custom changes being applied through AGP, but after removing or refactoring some dependencies this will change.
2 years ago
Compose uses a custom compiler version + plugin. You can force it for kmp module as well, but I suspect it will affect js compilation at least.
AGP does something like this, so you can try to add it to your module to force compiler version.