Just want to say thanks for moving the compose com...
# eap
e
Just want to say thanks for moving the compose compiler into kotlin (2.0.0-RC1), configuring the compiler with a typed API is just so much better ! (plus javadoc and code completion!)
Copy code
fun Project.ComposeConvention() {
  pluginManager.withPlugin("org.jetbrains.kotlin.plugin.compose") {
    configure<ComposeCompilerGradlePluginExtension> {
      val reporting = the<ReportingExtension>()
      val reportsEnabled = providers.gradleProperty("compose.enableReports")
      val reportsDir = reporting.baseDirectory.dir("compose").filter { reportsEnabled.orNull == "true" }
      reportsDestination = reportsDir
      metricsDestination = reportsDir
      enableIntrinsicRemember = true
      enableExperimentalStrongSkippingMode = true
      stabilityConfigurationFile = rootProject.file("compose-stability-config.txt")
    }
    dependencies {
      "implementation"(libs.jetbrains.compose.runtime)
    }
  }
}
💚
thank you color 2
kodee happy 1
1
j
It's also usable for non-Compose UI-based compositions like Molecule, Mosaic, and Redwood unlike the existing JB one. So nice.
e
Yup exactly! I really love it!
y
I’m also happy to not need to work with CommonExtension<*, *, *, *, *, *> again 😄
Btw is this going to be moved into KGP or stay in its own artifact?
t
for now - own artifact. We have an ongoing discussion about provide more unified approach in regards KGP and Kotlin official compiler plugins, but no decision so far.
👍 1
👍🏾 1
j
It's worth noting that there are a few commits that need to go in before the final 2.0.0 build (related to bugs in multiplatform and incremental compilation) but yeah, huge thanks to @tapchicoma and @nk and @Marina Shishkina and everyone else who helped make this happen! This is going to be a huge improvement for all users of Compose and should go a long way to solving the kotlin-compose compatibility matrix complexities.
kodee loving 5
I'm really excited for this change in Kotlin!
same 2
c
oh nice. so no more having to remember to specify a specific compose compiler version?
👌 3
107 Views