Skip to content

chore(deps): Kotlin 2.4.21 with the compilerOptions DSL (supersedes #45) - #53

Merged
bmachek merged 3 commits into
mainfrom
deps/kotlin-2.4
Dec 1, 2026
Merged

bmachek merged 3 commits into
mainfrom
deps/kotlin-2.4

Conversation

@bmachek

@bmachek bmachek commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Carries Dependabot's #45 (org.jetbrains.kotlin.android 2.2.20 → 2.4.21) plus the fix its Android build needed.

Kotlin 2.4 turns android { kotlinOptions { jvmTarget = "17" } } into a compile error in build.gradle.kts:

e: android/app/build.gradle.kts:37:9: Using 'jvmTarget: String' is an error. Please migrate to the compilerOptions DSL.

This moves it to kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_17 } }. AGP stays at 8.11.1 and Gradle at 8.14; the AGP 9 / Gradle 9 bumps (#46, #47) remain blocked on disable_battery_optimization 1.1.2, which still calls jcenter().

There is no Android SDK on the machine this was prepared on, so the CI debug APK build is the verification.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HaMMvqsLMJHoezDC37WcxA

dependabot Bot and others added 3 commits November 1, 2026 05:12
Bumps the gradle group in /android with 1 update: [org.jetbrains.kotlin.android](https://github.com/JetBrains/kotlin).


Updates `org.jetbrains.kotlin.android` from 2.2.20 to 2.4.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](JetBrains/kotlin@v2.2.20...v2.4.21)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin.android
  dependency-version: 2.4.21
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gradle
...

Signed-off-by: dependabot[bot] <support@github.com>
Kotlin 2.4 makes the `kotlinOptions { jvmTarget = String }` setter a
compile error in Gradle Kotlin scripts, which broke the debug build of
#45. `kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_17 } }` is the
replacement and is also understood by the Kotlin 2.2 plugin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HaMMvqsLMJHoezDC37WcxA
@bmachek
bmachek merged commit ecceb38 into main Dec 1, 2026
8 checks passed
@bmachek
bmachek deleted the deps/kotlin-2.4 branch December 1, 2026 19:39
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