Commit 82cb56a
committed
build: upgrade Kotlin to 2.4.0
Bump the Kotlin version in the catalog from 2.3.21 to 2.4.0. The version is the
single source of truth for the kotlin("jvm") plugin and kotlin-reflect, so the
one change applies to every module.
Add org.jetbrains:annotations 26.0.2 as a compile-only dependency on every Kotlin
module (alongside slf4j-api). kotlin-stdlib transitively pins the ancient
annotations 13.0, which predates @UnknownNullability; the 2.4.0 toolchain
materialises inferred platform types with that annotation, and resolving it
against 13.0 fails ("type annotation class ... is inaccessible"). Keeping it
compile-only keeps it out of the published POM and the binary-compat ABI snapshots.
Verified with a full ./gradlew build (ktlint, detekt, apiCheck, Kover floor, and
the R8 shrink-survival guard all pass).1 parent b16a0d5 commit 82cb56a
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments