Skip to content

Commit

Permalink
Kotlin updated to 2.0.20. #492
Browse files Browse the repository at this point in the history
  • Loading branch information
czyzby committed Aug 25, 2024
1 parent 409efdb commit 0610fa3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ _See also: [the official libGDX changelog](https://github.com/libgdx/libgdx/blob

#### 1.12.1-SNAPSHOT

- **[UPDATE]** Updated to Kotlin 2.0.20.

#### 1.12.1-rc2

- **[UPDATE]** Updated to Kotlin 1.9.25.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![GitHub Build](https://github.com/libktx/ktx/workflows/build/badge.svg)](https://github.com/libktx/ktx/actions?query=workflow%3Abuild)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.25-orange.svg)](http://kotlinlang.org/)
[![Kotlin](https://img.shields.io/badge/kotlin-2.0.20-orange.svg)](http://kotlinlang.org/)
[![libGDX](https://img.shields.io/badge/libgdx-1.12.1-red.svg)](https://libgdx.com/)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.libktx/ktx-async.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.github.libktx%22)

Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ktx.*
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
import org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
Expand Down Expand Up @@ -80,6 +81,7 @@ subprojects {
jvmTarget = JavaVersion.VERSION_1_8.toString()
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
jvmTargetValidationMode.set(JvmTargetValidationMode.IGNORE)
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
Expand Down
2 changes: 1 addition & 1 deletion collections/src/main/kotlin/ktx/collections/maps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ operator fun <Key, Value> GdxMap<Key, Value>.set(key: Key, value: Value): Value?
*/
inline fun <Key, Value> GdxMap<Key, Value>.iterate(action: (Key, Value, MutableIterator<Entry<Key, Value>>) -> Unit) {
val iterator = this.iterator()
while (iterator.hasNext) {
while (iterator.hasNext()) {
val next = iterator.next()
action(next.key, next.value, iterator)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
libGroup=io.github.libktx

kotlinVersion=1.9.25
kotlinVersion=2.0.20

dokkaVersion=1.9.20
junitPlatformVersion=1.2.0
Expand Down

0 comments on commit 0610fa3

Please sign in to comment.