Skip to content

Enhancement: Upgrade Kotlin to 2.1.x #182

Closed

Description

@github-actions

Summary

The project currently uses Kotlin 1.9.22. Kotlin 2.0 is now stable and 2.1.x is the latest release, bringing significant improvements.

Motivation

  • Kotlin 2.0 K2 Compiler is ~2x faster than the K1 compiler, reducing build times.
  • New Compose Compiler Gradle Plugin — in Kotlin 2.0+, the Compose compiler is distributed as a separate Kotlin compiler plugin (org.jetbrains.kotlin.plugin.compose) instead of being tied to the Kotlin version. This simplifies version management.
  • Bug fixes, new language features (e.g. improved data object, power assert plugin), and improved type inference.
  • Kotlin 1.9.x reaches end-of-life maintenance.

Proposed Changes

  1. Bump kotlin-gradle-plugin in build.gradle.kts from 1.9.22 → 2.1.x (e.g. 2.1.20).
  2. In buildSrc/src/main/kotlin/.../Versions.kt, update kotlin = "1.9.22" → "2.1.20".
  3. Switch the Compose compiler from kotlinCompilerExtensionVersion to the new org.jetbrains.kotlin.plugin.compose Gradle plugin (see official migration guide).
  4. Remove the now-redundant composeCompiler version constant from Versions.kt and ProjectConfigs.kt.
  5. Verify all modules compile and tests pass.

References

Activity

  1. added a commit that references this issue on Sep 8, 2026
    7884847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions