JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.02k stars 1.1k forks source link

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

Closed terrakok closed 3 weeks ago

terrakok commented 3 weeks ago

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:

Subsections: