Skip to content

Commit

Permalink
upgrade to Kotlin 2.0.0 before the announcement tomorrow at KotlinCon…
Browse files Browse the repository at this point in the history
…f :-)
  • Loading branch information
angryziber committed May 22, 2024
1 parent 2bde855 commit f4505bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -46,10 +47,10 @@ subprojects {
java.sourceCompatibility = JavaVersion.VERSION_11

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
freeCompilerArgs += "-opt-in=kotlin.ExperimentalStdlibApi"
freeCompilerArgs += "-Xcontext-receivers"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
freeCompilerArgs.add("-opt-in=kotlin.ExperimentalStdlibApi")
freeCompilerArgs.add("-Xcontext-receivers")
}
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ rootProject.name = "klite"
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
version("kotlin", "1.9.22")
version("kotlin", "2.0.0")

val coroutines = version("coroutines", "1.7.3")
library("kotlinx-coroutines", "org.jetbrains.kotlinx", "kotlinx-coroutines-jdk8").versionRef(coroutines)
Expand Down

0 comments on commit f4505bd

Please sign in to comment.