Skip to content

Commit 9972b4a

Browse files
committed
feat: Kotlin 2.1.20 release details (#4751)
1 parent 29a884b commit 9972b4a

32 files changed

+642
-32
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.10
5-
url: https://github.com/JetBrains/kotlin/releases/tag/v2.1.10
4+
version: 2.1.20
5+
url: https://github.com/JetBrains/kotlin/releases/tag/v2.1.20

docs/kr.tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
<toc-element topic="competitive-programming.md"/>
2424
</toc-element>
2525
<toc-element toc-title="What's new in Kotlin">
26-
<toc-element toc-title="Kotlin 2.1.0" accepts-web-file-names="whatsnew.html" topic="whatsnew21.md"/>
27-
<toc-element toc-title="Kotlin 2.1.20-RC3" topic="whatsnew-eap.md"/>
26+
<toc-element toc-title="Kotlin 2.1.20" accepts-web-file-names="whatsnew.html" topic="whatsnew2120.md"/>
27+
<toc-element toc-title="Kotlin 2.1.0" topic="whatsnew21.md"/>
28+
<toc-element toc-title="Kotlin 2.1.20-RC3" topic="whatsnew-eap.md" hidden="true"/>
2829
<toc-element toc-title="Earlier versions">
2930
<toc-element toc-title="Kotlin 2.0.20" topic="whatsnew2020.md"/>
3031
<toc-element toc-title="Kotlin 2.0.0" topic="whatsnew20.md"/>

docs/topics/configure-build-for-eap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[//]: # (title: Configure your build for EAP)
22

33
<tldr>
4-
<!-- <p>No preview versions are currently available</p> -->
5-
<p>Latest Kotlin EAP release: <strong>%kotlinEapVersion%</strong></p>
4+
<p>No preview versions are currently available</p>
5+
<!-- <p>Latest Kotlin EAP release: <strong>%kotlinEapVersion%</strong></p> -->
66
<p><a href="eap.md#build-details">Explore Kotlin EAP release details</a></p>
77
</tldr>
88

@@ -152,4 +152,4 @@ In the sample Maven project definition, replace `KOTLIN-EAP-VERSION` with the ac
152152

153153
* Report an issue to [our issue tracker, YouTrack](https://kotl.in/issue).
154154
* Find help in the [#eap channel in Kotlin Slack](https://app.slack.com/client/T09229ZC6/C0KLZSCHF) ([get an invite](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up)).
155-
* Roll back to the latest stable version: [change it in your build script file](configure-build-for-eap.md#adjust-the-kotlin-version).
155+
* Roll back to the latest stable version: [change it in your build script file](#adjust-the-kotlin-version).

docs/topics/eap.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[//]: # (title: Participate in the Kotlin Early Access Preview)
22

3+
<!--
34
<tldr>
45
<p>Latest Kotlin EAP release: <strong>%kotlinEapVersion%</strong></p>
56
</tldr>
7+
-->
68

79
You can participate in the Kotlin Early Access Preview (EAP) to try out the latest Kotlin features before they are released.
810

@@ -35,8 +37,9 @@ In this channel, you can also get notifications about new EAP builds.
3537

3638
## Build details
3739

38-
<!-- _No preview versions are currently available._ -->
40+
_No preview versions are currently available._
3941

42+
<!--
4043
<table>
4144
<tr>
4245
<th>Build info</th>
@@ -52,4 +55,5 @@ In this channel, you can also get notifications about new EAP builds.
5255
<p>For more details, please refer to the <a href="https://github.com/JetBrains/kotlin/releases/tag/v2.1.20-RC3">changelog</a> or <a href="whatsnew-eap.md">What's new in Kotlin 2.1.20-RC3</a>.</p>
5356
</td>
5457
</tr>
55-
</table>
58+
</table>
59+
-->

docs/topics/gradle/gradle-plugin-variants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Currently, there are the following variants of the Kotlin Gradle plugin:
1616
| Variant's name | Corresponding Gradle versions |
1717
|----------------|-------------------------------|
1818
| `main` | 7.6.0–7.6.3 |
19-
| `gradle80` | 8.0 |
19+
| `gradle80` | 8.0–8.0.2 |
2020
| `gradle81` | 8.1.1 |
2121
| `gradle82` | 8.2.1–8.4 |
2222
| `gradle85` | 8.5 and higher |

docs/topics/home.topic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<misc>
3030
<cards narrow="false">
3131
<title>Featured topics</title>
32-
<a href="whatsnew21.md" summary="New language features and other updates">What's new in Kotlin 2.1.0</a>
32+
<a href="whatsnew2120.md" summary="New experimental features, performance improvements, and bug fixes">What's new in Kotlin 2.1.20</a>
3333
<a href="releases.md" summary="The latest Kotlin releases and instructions on how to update to them">Kotlin releases</a>
3434
<a href="https://kotlinlang.org/api/latest/jvm/stdlib/" summary="Living essentials for everyday work with Kotlin: IO, files, threading, collections, and much more">Standard library API reference</a>
3535
<a href="basic-types.md" summary="Kotlin type system: numbers, strings, arrays, and other built-in types">Basic types</a>

docs/topics/lombok.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Apply the `kotlin-plugin-lombok` Gradle plugin in the `build.gradle(.kts)` file:
4444
```kotlin
4545
plugins {
4646
kotlin("plugin.lombok") version "%kotlinVersion%"
47-
id("io.freefair.lombok") version "8.10"
47+
id("io.freefair.lombok") version "%lombokVersion%"
4848
}
4949
```
5050

@@ -54,7 +54,7 @@ plugins {
5454
```groovy
5555
plugins {
5656
id 'org.jetbrains.kotlin.plugin.lombok' version '%kotlinVersion%'
57-
id 'io.freefair.lombok' version '8.10'
57+
id 'io.freefair.lombok' version '%lombokVersion%'
5858
}
5959
```
6060

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ This section covers incompatible changes that end their deprecation cycle and co
4040

4141
<anchor name="java-source-set-created-by-default"/>
4242
### Java source sets created by default
43-
<primary-label ref="eap"/>
4443

4544
**What's changed?**
4645

4746
To align Kotlin Multiplatform with upcoming changes in Gradle, we are phasing out the `withJava()` function. The `withJava()`
48-
function enabled integration with Gradle's Java plugins by creating the necessary Java source sets. From Kotlin %kotlinEapVersion%,
47+
function enabled integration with Gradle's Java plugins by creating the necessary Java source sets. From Kotlin 2.1.20,
4948
these Java source sets are created by default.
5049

5150
**What's the best practice now?**
@@ -60,7 +59,7 @@ kotlin {
6059
}
6160
```
6261

63-
From Kotlin %kotlinEapVersion%, you can remove the `withJava()` function from your build script.
62+
From Kotlin 2.1.20, you can remove the `withJava()` function from your build script.
6463

6564
In addition, Gradle now only runs Java compile tasks if Java sources are present, triggering a JVM validation
6665
diagnostic that previously didn't run before. This diagnostic fails if you explicitly configure an incompatible JVM target
@@ -72,7 +71,7 @@ If your project uses Gradle versions higher than 8.7 and doesn't rely on Gradle
7271
or a third party Gradle plugin that has a dependency on a Gradle Java plugin, you can remove the `withJava()` function.
7372

7473
If your project uses the [Application](https://docs.gradle.org/current/userguide/application_plugin.html) Gradle Java plugin,
75-
we recommend migrating to the [new Experimental DSL](whatsnew-eap.md#kotlin-multiplatform-new-dsl-to-replace-gradle-s-application-plugin).
74+
we recommend migrating to the [new Experimental DSL](whatsnew2120.md#kotlin-multiplatform-new-dsl-to-replace-gradle-s-application-plugin).
7675
Starting with Gradle 8.7, the Application plugin will no longer work with the Kotlin Multiplatform Gradle plugin.
7776

7877
If you want to use both the Kotlin Multiplatform Gradle plugin and other Gradle plugins for
@@ -86,7 +85,7 @@ Here's the planned deprecation cycle:
8685

8786
* Gradle >8.6: introduce a deprecation warning for any previous version of Kotlin in multiplatform projects using the `withJava()` function.
8887
* Gradle 9.0: raise this warning to an error.
89-
* %kotlinEapVersion%: introduce a deprecation warning when using the `withJava()` function with any version of Gradle.
88+
* 2.1.20: introduce a deprecation warning when using the `withJava()` function with any version of Gradle.
9089

9190
<anchor name="android-target-rename"/>
9291
### Rename of `android` target to `androidTarget`

docs/topics/releases.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ The following table lists details of the latest Kotlin releases:
9696
<th>Build info</th>
9797
<th>Build highlights</th>
9898
</tr>
99+
<tr>
100+
<td><strong>2.1.20</strong>
101+
<p>Released: <strong>March 20, 2025</strong></p>
102+
<p><a href="https://github.com/JetBrains/kotlin/releases/tag/v2.1.20" target="_blank">Release on GitHub</a></p>
103+
</td>
104+
<td>
105+
<p>A tooling release for Kotlin 2.1.0 containing new experimental features, performance improvements, and bug fixes.</p>
106+
<p>Learn more about Kotlin 2.1.20 in <a href="whatsnew2120.md" target="_blank">What's new in Kotlin 2.1.20</a>.</p>
107+
</td>
108+
</tr>
99109
<tr>
100110
<td><strong>2.1.10</strong>
101111
<p>Released: <strong>January 27, 2025</strong></p>
File renamed without changes.

0 commit comments

Comments
 (0)