Hi Champs :kodee-welcoming: Kotlin <2.1.0-Beta1> ...
# eap
a
Hi Champs kodee welcoming Kotlin 2.1.0-Beta1 has just released! In this release we've enabled experimental support for Gradle's Isolated Projects for Kotlin Multiplatform! And we're looking for feedback! How to enable? Just enable Isolated Projects in Gradle and Kotlin Gradle Plugin will automatically apply necessary changes to its model to support Isolated Projects feature. What has changed? Gradle Isolated Projects limits the possibilities of interproject communication. This, unfortunately, forces us to change Kotlin Gradle Plugin Model (i.e. we have changed some tasks and added new tasks and consumable configurations). If this affects you please let us know. If your build setup doesn't support Isolated Projects regardless of Kotlin Gradle Plugin, you can try enabling Isolated Projects support for KMP without enabling Isolated Projects itself. To do so set this Gradle property:
Copy code
# gradle.properties
kotlin.kmp.isolated-projects.support=enable
All possible values for this flag can be found here. Known problems There are few known problems that will be fixed in future releases: • IDE Support KTIJ-30515 (exact release is uknown yet) • KMP Publishing KT-66049 (will be fixed in 2.1.0-Beta2) • Compose and other popular Kotlin Plugins are untested yet. Please try it and let us know if you have any issues, we will be happy to fix it and stabilize Isolated Projects support in Kotlin 2.1 release kodee excited Thank you! You're the best!
K 6
youtrack 1
a
Are there benefits in setting
kotlin.kmp.isolated-projects.support=enable
but not enabling Gradle project isolation? It's likely that other Gradle plugins and features don't support PI yet, so enabling it isn't possible.
a
It can be beneficial in the way to report if something breaks for your build. And eventually KGP will apply those changes by default. So it worth preparing before that happens.
s
AGP was able to enable Isolated Projects for most of our KMP integration tests with Kotlin
2.1.0-Beta1
. See here.
🎉 3
thank you color 1
There were 2 tests that failed though... I filed https://youtrack.jetbrains.com/issue/KT-71833/KMP-model-changes-when-enabling-Isolated-Projects for those tests
thank you color 1