[gradle] Hide multimodule resources under a flag. #4772
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After some discussions with Kotlin team we decided to hide the multi module support for resources under a gradle property:
compose.resources.multimodule.enable=true
.It gives users a way to migrate on the new Kotlin without unexpected problems and enable the new resource's behavior smoothly.
By default the new behavior is disabled. But I guess it should be enabled in the official wizard though.
Testing
Projects with CMP 1.6.2 should work as before after update to Kotlin 2.0.0 and CMP 1.6.10
Gradle output should contain a message:
If the new feature is enebled then the publication and the multimodule support will work.
Release Notes
To enable the Compose Resources publication and the multimodule support add
compose.resources.multimodule.enable=true
to the rootgradle.properties
.Sections:
Subsections: