Commit 1176060
build(deps): Upgrade default Kotlin to 2.1.21 (#1265)
Bump the default Kotlin version from 1.8.20 to the latest 2.1.x release.
Staying on 2.1.x keeps the plugin-build language version at 1.8: that
build derives languageVersion/apiVersion from the oldest the compiler
still supports (current minus three), which is 1.8 for Kotlin 2.1 but
2.0 for Kotlin 2.3. A note on Dependencies.kt records this so future
bumps are aware they may raise the language level.
KSP1 is patch-coupled to the Kotlin compiler, so the default KSP1
fallback is bumped from 2.1.0-1.0.29 to 2.1.21-2.0.2 to match; the old
one crashed the KSP compile with an internal compiler error on 2.1.21.
Make BuildPluginsVersion.KOTLIN the single source of truth: the kotlin
plugin aliases in the catalog are now versionless and take their version
from the apply site. The standalone sentry-snapshots-runtime included
build has no buildSrc and can't reach Dependencies.kt, so it (and the
kotlinJunit test dependency) pin the version inline.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 42ff7d7 commit 1176060
3 files changed
Lines changed: 14 additions & 10 deletions
File tree
- buildSrc/src/main/java
- gradle
- sentry-snapshots-runtime
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | | - | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments