Closed HamaniKhalil closed 4 weeks ago
The multimodules resources are supported since Kotlin 2.0.0 only.
Perfect, I upgraded to Kotlin 2.0.0 and had to remove all composeOptions
sections from my modules that use compose and applied the compose compiler plugin. The app runs again that's perfect 👌
Description I'm having an issue, but I'm not sure if it's a bug, a mis-understanding of how compose multiplatform projects should be built or a mis-configuration issue on my side. So here's my issue : I have an Android running multi-module project that I wanted to transform to a kotlin multiplatform project. The architecture that I've chosen is the following.
The issue I'm having is that when defining string resources as
composeResources
in anycommonMain
source set in some feature module ; let's say:ui
(I need to do that because I need to make sure I don't have to define common accessibility wordings for my ui components), as soon as I define it for another module for example:features:feature1
I'm having the following build issue :The error happens during
:app:mergeDebugJavaResource
, see trace bellow :Provided that in
ui/build.gradle.kts
I have this :and the same goes for
features/feature1/build.gradle.kts
:Affected platforms
Versions
To Reproduce I've already checked-out the whole documentation page on how to manage compose multiplatform resources. But it doesn't seem to document multi-module projects compound of compose multiplatform modules.
The only thing I found on excluding generated intermediate files is the following block :
that should be added inside the
android
extension in thegradle.build.kts
file, but this doesn't seem to work.Expected behavior I'd like to know what am I missing in my configuration in order to have each separate module hold its strict minimum string set of resources inside the
commonMain
source set so that it can be shared accros platforms.