Skip to content

Commit

Permalink
Merge pull request #736 from Kotlin/enforce-jdk-11
Browse files Browse the repository at this point in the history
Enforce the project to be built with Java 11
  • Loading branch information
Jolanrensen authored Jun 14, 2024
2 parents 45ba9b5 + 1aea0c5 commit 54db451
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlinx.dataframe.AnyFrame
import org.jetbrains.kotlinx.dataframe.DataFrame
Expand Down Expand Up @@ -124,6 +125,8 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
}
}

kotlin.jvmToolchain(11)

allprojects {
tasks.withType<KotlinCompile> {
kotlinOptions {
Expand Down Expand Up @@ -160,6 +163,9 @@ allprojects {
} catch (_: UnknownDomainObjectException) {
logger.warn("Could not set kotlinter config on :${this.name}")
}

// set the java toolchain version to 11 for all subprojects for CI stability
extensions.findByType<KotlinJvmProjectExtension>()?.jvmToolchain(11)
}
}

Expand Down

0 comments on commit 54db451

Please sign in to comment.