Skip to content

Commit 693811d

Browse files
AlejandraPedrozadanil-pavlovsarahhaggarty
authored
feat: add Kotlin 2.1.21 release info (#4817)
* feat: add Kotlin 2.1.21 release info * feat: 2.1.21 doc update (#4812) * update: xcode support * chore: cinterop issue * chore: fix Gradle max support --------- Co-authored-by: alepedroza <[email protected]> * chore: Andrey review * update: fix for java-test-fixtures plugin in 2.1.21 * chore: fix dates --------- Co-authored-by: Danil Pavlov <[email protected]> Co-authored-by: Sarah Haggarty <[email protected]>
1 parent 3715ddc commit 693811d

File tree

6 files changed

+45
-29
lines changed

6 files changed

+45
-29
lines changed

data/releases.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
url: https://github.com/JetBrains/kotlin/releases
22

33
latest:
4-
version: 2.1.20
5-
url: https://github.com/JetBrains/kotlin/releases/tag/v2.1.20
4+
version: 2.1.21
5+
url: https://github.com/JetBrains/kotlin/releases/tag/v2.1.21

docs/topics/eap.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,4 @@ In this channel, you can also get notifications about new EAP builds.
6363
<p>For more details, please refer to the <a href="https://github.com/JetBrains/kotlin/releases/tag/v2.2.0-Beta2">changelog</a> or <a href="whatsnew-eap.md">What's new in Kotlin 2.2.0-Beta2</a>.</p>
6464
</td>
6565
</tr>
66-
<tr>
67-
<td><strong>2.1.21-RC2</strong>
68-
<p>Released: <strong>May 1, 2025</strong></p>
69-
<p><a href="https://github.com/JetBrains/kotlin/releases/tag/v2.1.21-RC2" target="_blank">Release on GitHub</a></p>
70-
</td>
71-
<td>
72-
<p>A bug fix release for Kotlin 2.1.20.</p>
73-
<p>For more details, please refer to the <a href="https://github.com/JetBrains/kotlin/releases/tag/v2.1.21-RC2">changelog</a>.</p>
74-
</td>
75-
</tr>
7666
</table>

docs/topics/multiplatform/multiplatform-compatibility-guide.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ the Kotlin version you have in your projects, for example:
1818
When configuring your project, check the compatibility of a particular version of the Kotlin Multiplatform Gradle plugin
1919
(same as the Kotlin version in your project) with Gradle, Xcode, and Android Gradle plugin versions:
2020

21-
| Kotlin Multiplatform plugin version | Gradle | Android Gradle plugin | Xcode |
22-
|-------------------------------------|---------------------------------------|---------------------------------|---------|
23-
| 2.1.20 | %minGradleVersion%–%maxGradleVersion% | 7.4.2–%maxAndroidGradleVersion% | %xcode% |
24-
| 2.1.0–2.1.10 | 7.6.3-8.10* | 7.4.2–8.7.2 | 16.0 |
25-
| 2.0.21 | 7.5-8.8* | 7.4.2–8.5 | 16.0 |
26-
| 2.0.20 | 7.5-8.8* | 7.4.2–8.5 | 15.3 |
27-
| 2.0.0 | 7.5-8.5 | 7.4.2–8.3 | 15.3 |
28-
| 1.9.20 | 7.5-8.1.1 | 7.4.2–8.2 | 15.0 |
21+
| Kotlin Multiplatform plugin version | Gradle | Android Gradle plugin | Xcode |
22+
|-------------------------------------|---------------------------------------|-----------------------------------------------------|---------|
23+
| 2.1.21 | %minGradleVersion%–%maxGradleVersion% | %minAndroidGradleVersion%–%maxAndroidGradleVersion% | %xcode% |
24+
| 2.1.20 | 7.6.3–8.11 | 7.4.2–8.7.2 | 16.0 |
25+
| 2.1.0–2.1.10 | 7.6.3-8.10* | 7.4.2–8.7.2 | 16.0 |
26+
| 2.0.21 | 7.5-8.8* | 7.4.2–8.5 | 16.0 |
27+
| 2.0.20 | 7.5-8.8* | 7.4.2–8.5 | 15.3 |
28+
| 2.0.0 | 7.5-8.5 | 7.4.2–8.3 | 15.3 |
29+
| 1.9.20 | 7.5-8.1.1 | 7.4.2–8.2 | 15.0 |
2930

3031
> *Kotlin 2.0.20–2.0.21 and Kotlin 2.1.0–2.1.10 are fully compatible with Gradle up to 8.6.
3132
> Gradle versions 8.7–8.10 are also supported, with only one exception: If you use the Kotlin Multiplatform Gradle plugin,
@@ -77,6 +78,10 @@ Starting with Gradle 8.7, the Application plugin will no longer work with the Ko
7778
If you want to use both the Kotlin Multiplatform Gradle plugin and other Gradle plugins for
7879
Java in your multiplatform project, see [Deprecated compatibility with Kotlin Multiplatform Gradle plugin and Java plugins](multiplatform-compatibility-guide.md#deprecated-compatibility-with-kotlin-multiplatform-gradle-plugin-and-gradle-java-plugins).
7980

81+
If you use the [Java test fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures) Gradle plugin with Kotlin 2.1.20
82+
and a Gradle version higher than 8.7, the plugin doesn't work. Instead, upgrade to [Kotlin 2.1.21](releases.md#release-details)
83+
where this issue is resolved.
84+
8085
If you run into any issues, report them in our [issue tracker](https://kotl.in/issue) or ask for help in our [public Slack channel](https://kotlinlang.slack.com/archives/C19FD9681).
8186

8287
**When do the changes take effect?**

docs/topics/releases.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ The following table lists details of the latest Kotlin releases:
104104
<th>Build info</th>
105105
<th>Build highlights</th>
106106
</tr>
107+
<tr>
108+
<td><strong>2.1.21</strong>
109+
<p>Released: <strong>May 13, 2025</strong></p>
110+
<p><a href="https://github.com/JetBrains/kotlin/releases/tag/v2.1.21" target="_blank">Release on GitHub</a></p>
111+
</td>
112+
<td>
113+
<p>A bug fix release for Kotlin 2.1.20.</p>
114+
<p>For more details, please refer to the <a href="https://github.com/JetBrains/kotlin/releases/tag/v2.1.21">changelog</a>.</p>
115+
</td>
116+
</tr>
107117
<tr>
108118
<td><strong>2.1.20</strong>
109119
<p>Released: <strong>March 20, 2025</strong></p>

docs/topics/whatsnew/whatsnew2120.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Kotlin 2.1.20 release is here! Here are the main highlights:
66

77
* **K2 compiler updates**: [updates to the new kapt and Lombok plugins](#kotlin-k2-compiler)
88
* **Kotlin Multiplatform**: [new DSL to replace Gradle's Application plugin](#kotlin-multiplatform-new-dsl-to-replace-gradle-s-application-plugin)
9-
* **Kotlin/Native**: [new inlining optimization](#kotlin-native-new-inlining-optimization)
9+
* **Kotlin/Native**: [support for Xcode 16.3 and a new inlining optimization](#kotlin-native)
1010
* **Kotlin/Wasm**: [default custom formatters, support for DWARF, and migration to Provider API](#kotlin-wasm)
1111
* **Gradle support**: [compatibility with Gradle's Isolated Projects and custom publication variants](#gradle)
1212
* **Standard library**: [common atomic types, improved UUID support, and new time-tracking functionality](#standard-library)
@@ -119,7 +119,17 @@ plugin is applied on the first `executable {}` block.
119119

120120
If you run into any issues, report them in our [issue tracker](https://kotl.in/issue) or let us know in our [public Slack channel](https://kotlinlang.slack.com/archives/C19FD9681).
121121

122-
## Kotlin/Native: new inlining optimization
122+
## Kotlin/Native
123+
124+
### Support for Xcode 16.3
125+
126+
Starting with Kotlin **2.1.21**, the Kotlin/Native compiler supports Xcode 16.3 – the latest stable version of Xcode.
127+
Feel free to update your Xcode and continue working on your Kotlin projects for Apple operating systems.
128+
129+
The 2.1.21 release also fixes the related [cinterop issue](https://youtrack.jetbrains.com/issue/KT-75781/) that caused
130+
compilation failures in Kotlin Multiplatform projects.
131+
132+
### New inlining optimization
123133
<primary-label ref="experimental-opt-in"/>
124134

125135
Kotlin 2.1.20 introduces a new inlining optimization pass, which comes before the actual code generation phase.
@@ -551,9 +561,10 @@ alongside the plugin, due to an option being effectively set twice.
551561

552562
## Breaking changes and deprecations
553563

554-
* To align Kotlin Multiplatform with upcoming changes in Gradle, we are phasing out the `withJava()` function.
555-
[Java source sets are now created by default](multiplatform-compatibility-guide.md#java-source-sets-created-by-default).
556564

565+
* To align Kotlin Multiplatform with upcoming changes in Gradle, we are phasing out the `withJava()` function.
566+
[Java source sets are now created by default](multiplatform-compatibility-guide.md#java-source-sets-created-by-default). If you use the [Java test fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures) Gradle plugin,
567+
upgrade directly to [Kotlin 2.1.21](releases.md#release-details) to avoid compatibility issues.
557568
* The JetBrains team is proceeding with the deprecation of the `kotlin-android-extensions` plugin. If you try to use it
558569
in your project, you'll now get a configuration error, and no plugin code will be executed.
559570

docs/v.list

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<vars>
66

77
<!-- Kotlin -->
8-
<var name="kotlinVersion" value="2.1.20" type="string"/>
9-
<var name="kotlinReleaseDate" value="March 20, 2025" type="string"/>
10-
<var name="kotlinLatestUrl" value="https://github.com/JetBrains/kotlin/releases/tag/v2.1.20" type="string"/>
8+
<var name="kotlinVersion" value="2.1.21" type="string"/>
9+
<var name="kotlinReleaseDate" value="May 13, 2025" type="string"/>
10+
<var name="kotlinLatestUrl" value="https://github.com/JetBrains/kotlin/releases/tag/v2.1.21" type="string"/>
1111
<var name="kotlinLatestWhatsnew" value="whatsnew2120.md" type="string"/>
1212

1313
<var name="languageVersion" value="2.1" type="string"/>
@@ -35,7 +35,7 @@
3535

3636
<!-- Gradle, KGP, AGP -->
3737
<var name="minGradleVersion" value="7.6.3" type="string"/>
38-
<var name="maxGradleVersion" value="8.11" type="string"/>
38+
<var name="maxGradleVersion" value="8.12.1" type="string"/>
3939

4040
<var name="minAndroidGradleVersion" value="7.3.1" type="string"/>
4141
<var name="maxAndroidGradleVersion" value="8.7.2" type="string"/>
@@ -67,6 +67,6 @@
6767
value="2.0.0"
6868
type="string"/>
6969

70-
<var name="xcode" value="16.0" type="string"/>
70+
<var name="xcode" value="16.3" type="string"/>
7171

7272
</vars>

0 commit comments

Comments
 (0)