Update Kotlin to 2.0.20

This commit is contained in:
Syer10
2024-09-02 21:25:01 -04:00
parent 6a6e411492
commit fb045c501a
4 changed files with 10 additions and 12 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ gradle.properties
.fleet
# But we need these
!.idea/runConfigurations
.kotlin
# Ignore Gradle build output directory
build

View File

@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import org.jlleitschuh.gradle.ktlint.KtlintExtension
import org.jlleitschuh.gradle.ktlint.KtlintPlugin
@@ -43,12 +44,9 @@ subprojects {
tasks {
withType<KotlinJvmCompile> {
dependsOn("ktlintFormat")
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
freeCompilerArgs += listOf(
"-Xcontext-receivers",
)
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
freeCompilerArgs.add("-Xcontext-receivers")
}
}
}

View File

@@ -1,5 +1,5 @@
[versions]
kotlin = "1.9.10"
kotlin = "2.0.20"
coroutines = "1.7.3"
serialization = "1.6.0"
okhttp = "5.0.0-alpha.14" # Major version is locked by Tachiyomi extensions

View File

@@ -141,9 +141,8 @@ tasks {
}
withType<KotlinJvmCompile> {
kotlinOptions {
freeCompilerArgs +=
listOf(
compilerOptions {
freeCompilerArgs.add(
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
}