File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2+ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
23import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
34import org.jetbrains.kotlinx.dataframe.AnyFrame
45import org.jetbrains.kotlinx.dataframe.DataFrame
@@ -124,6 +125,8 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
124125 }
125126}
126127
128+ kotlin.jvmToolchain(11 )
129+
127130allprojects {
128131 tasks.withType<KotlinCompile > {
129132 kotlinOptions {
@@ -160,6 +163,9 @@ allprojects {
160163 } catch (_: UnknownDomainObjectException ) {
161164 logger.warn(" Could not set kotlinter config on :${this .name} " )
162165 }
166+
167+ // set the java toolchain version to 11 for all subprojects for CI stability
168+ extensions.findByType<KotlinJvmProjectExtension >()?.jvmToolchain(11 )
163169 }
164170}
165171
Original file line number Diff line number Diff line change @@ -41,7 +41,3 @@ plugins {
4141}
4242include(" dataframe-excel" )
4343include(" core" )
44-
45- if (JavaVersion .current() != JavaVersion .VERSION_11 ) {
46- throw GradleException (" Building this version of the Kotlin DataFrame project can only be done with Java 11." )
47- }
You can’t perform that action at this time.
0 commit comments