Skip to content

Upgrade Kotlin to 2.4 and kotlinx-coroutines to 1.11 for 8.0 - #4039

Merged
a-TODO-rov merged 1 commit into
mainfrom
kotlin-2.4-coroutines-1.11
Nov 27, 2026
Merged

a-TODO-rov merged 1 commit into
mainfrom
kotlin-2.4-coroutines-1.11

Conversation

@a-TODO-rov

Copy link
Copy Markdown
Collaborator

Upgrade Kotlin to 2.4 and kotlinx-coroutines to 1.11 for 8.0

Summary

Builds the Kotlin coroutines API with Kotlin 2.4.21 and kotlinx-coroutines 1.11.0, and raises the Kotlin language and API version from 1.4 to 2.2. This replaces Dependabot's coroutines-only bump (#4036). That PR can't compile: coroutines 1.11.0 is built with Kotlin 2.2, and the Kotlin 2.0.0 compiler can't read it.

Key Decisions & Assumptions

  • The three versions move together. Kotlin 2.1 and later no longer accept language version 1.4, so coroutines 1.11 can't be adopted without raising it.
  • Language/API version 2.2, not a lower one. Kotlin 2.4 already marks 2.0 as deprecated, and 2.2 marks 1.8 and 1.9. A lower value would force another raise during 8.x. Spring Data's build uses the same values.
  • Bytecode still targets Java 8 (jvmTarget 1.8 is unchanged).

Behavioral / Conceptual Changes

  • Kotlin users need Kotlin 2.2 or later, both for the compiler and for kotlin-stdlib at runtime. The published Kotlin metadata moves from 1.4.3 to 2.2.0.
  • The calls Lettuce makes into kotlinx-coroutines are unchanged, so users don't need a newer coroutines runtime.
  • Java-only users are not affected, because all Kotlin dependencies stay optional.

Testing

mvn clean test on JDK 8: 3586 tests, 0 failures. Coroutine integration tests were not run locally; CI covers them.

Notes

  • Breaking for Kotlin users; listed under 8.0 breaking changes in docs/new-features.md.
  • Touches the same Kotlin compiler block in pom.xml as the coroutine API promotion (Promote coroutine API from experimental opt-in #3803), so whichever merges second needs a small rebase.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T11:07:15.228492Z 77a9840 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@a-TODO-rov
a-TODO-rov merged commit 3fb0f0c into main Nov 27, 2026
10 checks passed
@a-TODO-rov
a-TODO-rov deleted the kotlin-2.4-coroutines-1.11 branch November 27, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant