Skip to content

Enable Kotlin 2.x Compose compiler plugin and remove legacy composeOptions#3

Merged
hypermezo4-create merged 1 commit into
mainfrom
codex/fix-gradle-files-for-compose-plugin
Apr 21, 2026
Merged

Enable Kotlin 2.x Compose compiler plugin and remove legacy composeOptions#3
hypermezo4-create merged 1 commit into
mainfrom
codex/fix-gradle-files-for-compose-plugin

Conversation

@hypermezo4-create

Copy link
Copy Markdown
Owner

Motivation

  • The project uses Kotlin 2.x but the Compose compiler plugin was not registered or applied, leaving a legacy composeOptions setting that may conflict with the Kotlin 2.x Compose compiler plugin workflow.
  • Align the Gradle configuration with the official Kotlin 2.x Compose plugin approach so Compose compilation uses the Kotlin plugin instead of an explicit kotlinCompilerExtensionVersion in the module.

Description

  • Added id("org.jetbrains.kotlin.plugin.compose") version "2.0.21" apply false to the root build.gradle.kts to register the Compose compiler plugin using the repository's existing Kotlin version.
  • Applied id("org.jetbrains.kotlin.plugin.compose") in app/build.gradle.kts so the app module uses the Kotlin 2.x Compose compiler plugin.
  • Removed the legacy composeOptions { kotlinCompilerExtensionVersion = "1.5.15" } block from app/build.gradle.kts to avoid conflict with the plugin-based setup while keeping buildFeatures { compose = true } unchanged.
  • Only build.gradle.kts and app/build.gradle.kts were modified; the GitHub Actions debug APK workflow and other CI files were left intact.

Testing

  • Ran rg/search checks to confirm the plugin lines are present in build.gradle.kts and app/build.gradle.kts, which succeeded.
  • Ran git diff/inspection to verify the expected changes are limited to build.gradle.kts and app/build.gradle.kts, which succeeded.
  • Attempted ./gradlew :app:help to exercise Gradle, which failed because the environment is missing gradle/wrapper/gradle-wrapper.jar (environmental issue, not a code error).

Codex Task

@vercel

vercel Bot commented Apr 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cavo Ready Ready Preview, Comment Apr 21, 2026 9:40pm

@hypermezo4-create hypermezo4-create merged commit 3c123cc into main Apr 21, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant