Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gradle] Hide multimodule resources under a flag. #4772

Closed
wants to merge 1 commit into from

Conversation

terrakok
Copy link
Collaborator

@terrakok terrakok commented May 7, 2024

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:

Multimodule Compose Resources are disabled by default.
To enable it add 'compose.resources.multimodule.enable=true' int the root gradle.properties file.

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 root gradle.properties.

Sections:

  • Breaking changes

Subsections:

  • Resources
  • Gradle Plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant