Skip to content

Commit

Permalink
Merge pull request #1764 from robstoll/chore/gradle-deprecations
Browse files Browse the repository at this point in the history
switch to compilerOptions as kotlinOptions was deprecated in kotlin 2.0
  • Loading branch information
robstoll authored May 23, 2024
2 parents c494fa2 + 0757db7 commit f5e529e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand All @@ -11,7 +10,7 @@ plugins {
}

tasks.configureEach<KotlinCompile> {
kotlinOptions {
jvmTarget = buildParameters.defaultJdkVersion.toString()
compilerOptions{
jvmTarget.set(JvmTarget.fromTarget(buildParameters.defaultJdkVersion.toString()))
}
}
4 changes: 0 additions & 4 deletions misc/js-stubs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ kotlin {
nodejs()
}
}
//
//dependencies{
// api(libs.spek.common)
//}

0 comments on commit f5e529e

Please sign in to comment.