Skip to content

Commit e1342d2

Browse files
authored
Update Kotlin to 1.9.21 (#3954)
* Update Kotlin to 1.9.21 * Update atomicfu to a version released with 1.9.21 to address KT-62515 * Enable K/N atomicfu transformations
1 parent 9b2bd3a commit e1342d2

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
[![JetBrains official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
55
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)
66
[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.7.2)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.7.2)
7-
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.20-blue.svg?logo=kotlin)](http://kotlinlang.org)
7+
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.21-blue.svg?logo=kotlin)](http://kotlinlang.org)
88
[![Slack channel](https://img.shields.io/badge/chat-slack-green.svg?logo=slack)](https://kotlinlang.slack.com/messages/coroutines/)
99

1010
Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
11-
This is a companion version for the Kotlin `1.9.20` release.
11+
This is a companion version for the Kotlin `1.9.21` release.
1212

1313
```kotlin
1414
suspend fun main() = coroutineScope {
@@ -93,7 +93,7 @@ And make sure that you use the latest Kotlin version:
9393

9494
```xml
9595
<properties>
96-
<kotlin.version>1.9.20</kotlin.version>
96+
<kotlin.version>1.9.21</kotlin.version>
9797
</properties>
9898
```
9999

@@ -112,10 +112,10 @@ And make sure that you use the latest Kotlin version:
112112
```kotlin
113113
plugins {
114114
// For build.gradle.kts (Kotlin DSL)
115-
kotlin("jvm") version "1.9.20"
115+
kotlin("jvm") version "1.9.21"
116116

117117
// For build.gradle (Groovy DSL)
118-
id "org.jetbrains.kotlin.jvm" version "1.9.20"
118+
id "org.jetbrains.kotlin.jvm" version "1.9.21"
119119
}
120120
```
121121

gradle.properties

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
# Kotlin
66
version=1.7.2-SNAPSHOT
77
group=org.jetbrains.kotlinx
8-
kotlin_version=1.9.20
8+
kotlin_version=1.9.21
99

1010
# Dependencies
1111
junit_version=4.12
1212
junit5_version=5.7.0
13-
atomicfu_version=0.22.0
13+
atomicfu_version=0.23.1
1414
knit_version=0.4.0
1515
html_version=0.7.2
1616
lincheck_version=2.18.1
@@ -46,3 +46,4 @@ kotlinx.atomicfu.enableJvmIrTransformation=true
4646
# When the flag below is set to `true`, AtomicFU cannot process
4747
# usages of `moveForward` in `ConcurrentLinkedList.kt` correctly.
4848
kotlinx.atomicfu.enableJsIrTransformation=false
49+
kotlinx.atomicfu.enableNativeIrTransformation=true

integration-testing/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
kotlin_version=1.9.20
1+
kotlin_version=1.9.21
22
coroutines_version=1.7.2-SNAPSHOT
33
asm_version=9.3
44

kotlinx-coroutines-core/native/test/TestBase.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public actual typealias TestResult = Unit
1717

1818
public actual open class TestBase actual constructor() {
1919
public actual val isBoundByJsTestTimeout = false
20-
private var actionIndex = atomic(0)
21-
private var finished = atomic(false)
20+
private val actionIndex = atomic(0)
21+
private val finished = atomic(false)
2222
private var error: Throwable? = null
2323

2424
/**

0 commit comments

Comments
 (0)