Jetpack Compose compiler moving to the Kotlin repository

Exciting news, developers! Kotlin 2.0 is shaking things up by bringing the Jetpack Compose compiler right into the Kotlin repository. No more waiting for matching releases – they’ll sync up perfectly from now on! Get ready for smoother setups and happy coding with this awesome update!

Exciting News: Kotlin 2.0 Brings Compose Compiler to the Party!

Hey Developers,

We’ve got some thrilling news to share with you all! With the upcoming launch of Kotlin 2.0, the Jetpack Compose compiler is making a big move over to the Kotlin repository. What does this mean for you? Well, hold onto your keyboards because it’s good news all around!

Jetpack Compose compiler moving to the Kotlin repository

What’s Changing?

Gone are the days of waiting for a matching Compose compiler release whenever you wanted to upgrade your Kotlin version in your Compose app. With this shift, a matching Compose compiler will now roll out alongside each Kotlin release. No more waiting games, folks!

Teamwork Makes the Dream Work

Rest assured, the Compose team at Google isn’t going anywhere. They’ll still be the wizards behind the curtain, crafting and perfecting the compiler. And they’ll be teaming up closely with our pals over at JetBrains, the co-founders of the Kotlin Foundation. It’s a match made in coding heaven!

Join Our Whatsapp Group

Join Telegram group

Version Alignment

Say goodbye to version mismatch headaches! From now on, the version of the Compose compiler will always sync up with the Kotlin version. It’s a harmonious duo, dancing to the same version beat. Get ready because the compiler version is leaping to 2.0.0!

Description Table

SectionDescription
Exciting News: Kotlin 2.0 Brings Compose Compiler to the Party!Big news alert! Kotlin 2.0 is on its way, and it’s bringing the Jetpack Compose compiler along for the ride!
What’s Changing?No more waiting for Compose compiler releases! Now, it’ll sync up with Kotlin releases seamlessly.
Teamwork Makes the Dream WorkGoogle’s Compose team and JetBrains are teaming up to perfect the compiler. It’s a coding dream team!
Version AlignmentSay goodbye to version mismatch headaches! The Compose compiler will always match the Kotlin version.
Introducing the Compose Compiler Gradle PluginSimplify your setup with this new Gradle plugin. It’s type-safe and synced with Kotlin’s versioning.
How to Get StartedFollow these steps to get onboard with the Compose Compiler Gradle plugin and start coding away!
Maven Artifact ChangesHeads up! The maven artifacts for the Compose compiler are changing, so make sure to update accordingly.

Introducing the Compose Compiler Gradle Plugin

But wait, there’s more! We’re making setting up Compose even easier with the introduction of a shiny new Compose Compiler Gradle plugin. This nifty plugin comes with a type-safe API, simplifying your setup woes. Plus, it syncs up its versioning with Kotlin’s, starting from Kotlin 2.0.0.

How to Get Started

Ready to hop on the Compose Compiler Gradle plugin train? Here’s how:

  1. Update Your Gradle Version Catalog
[versions]
kotlin = "2.0.0"

[plugins]

org-jetbrains-kotlin-android = { id = “org.jetbrains.kotlin.android”, version.ref = “kotlin” } // Add the Compose Compiler Gradle plugin, matching Kotlin’s version compose-compiler = { id = “org.jetbrains.kotlin.plugin.compose”, version.ref = “kotlin” }

  1. Update Your Project’s Root Level Gradle File
plugins {
   // Existing plugins 
   alias(libs.plugins.compose.compiler) apply false
}
  1. Apply the Plugin in Your Modules
plugins {
   // Existing plugins
   alias(libs.plugins.compose.compiler)
}
  1. Optional Configuration

If needed, you can now configure options for the Compose compiler in a top-level section of the same Gradle file:

android { ... }

composeCompiler {
   enableStrongSkippingMode = true
}

Maven Artifact Changes

And one last thing, for those of you who were directly referencing the Compose compiler in your build setup, note that the maven artifacts are also changing:

Old:

  • androidx.compose.compiler:compiler
  • androidx.compose.compiler:compiler-hosted

New:

  • org.jetbrains.kotlin:kotlin-compose-compiler-plugin-embeddable
  • org.jetbrains.kotlin:kotlin-compose-compiler-plugin

Got it? Great! Now go forth and compose your hearts out with Kotlin 2.0 and the shiny new Compose compiler plugin. Happy coding!

FAQs

Q: What’s the big news about Kotlin 2.0 and the Compose compiler?

A: With Kotlin 2.0, the Compose compiler is joining the Kotlin repository, ensuring a matching compiler with each Kotlin release. No more waiting for updates!

Q: Who’s in charge of developing the Compose compiler?

A: Fear not, the Compose team at Google remains at the helm, working closely with JetBrains, the co-founders of the Kotlin Foundation, to craft and perfect the compiler.

Join Our Whatsapp Group

Join Telegram group

Q: How does version alignment work now?

A: Say goodbye to version mismatch headaches! The Compose compiler version now always aligns with the Kotlin version, ensuring seamless integration.

Q: What’s the deal with the new Compose Compiler Gradle Plugin?

A: This handy plugin makes setting up Compose a breeze with its type-safe API. Plus, it syncs its versioning with Kotlin’s, starting from Kotlin 2.0.0.

Q: How do I get started with the Compose Compiler Gradle Plugin?

A: Simply update your Gradle version catalog, add the plugin to your project’s root level Gradle file, and apply it in your modules. Optional configurations are also available.

Q: Are there any changes to Maven artifacts?

A: Yes, for those directly referencing the Compose compiler, note that the maven artifacts are changing to align with Kotlin’s new structure.

Q: Got it, anything else I should know?

A: Nope, that’s all! Now go forth and compose your hearts out with Kotlin 2.0 and the shiny new Compose compiler plugin. Happy coding!

Leave a Reply

Unlocking Potential with Apple Vision Pro Labs Navigating 2023’s Top Mobile App Development Platforms Flutter 3.16: Revolutionizing App Development 6 Popular iOS App Development Languages in 2023 Introducing Workflow Apps: Your Flutter App Development Partner