Skip to content

Commit

Permalink
fix: compile for jvm 11
Browse files Browse the repository at this point in the history
  • Loading branch information
slisson committed Feb 3, 2025
1 parent 18521d2 commit 3371600
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 3 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension

plugins {
alias(libs.plugins.kotlin.jvm) apply false
Expand Down Expand Up @@ -62,10 +59,8 @@ for ((majorVersion, fullVersion) in mpsVersions) {
)
}

plugins.withType<KotlinPlatformJvmPlugin> {
extensions.configure<KotlinJvmProjectExtension> {
jvmToolchain(11)
}
kotlinExtension.apply {
jvmToolchain(11)
}
}

Expand Down
4 changes: 4 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ java {

version = rootProject.version

kotlin {
jvmToolchain(11)
}

publishing {
repositories {
if (project.hasProperty("artifacts.itemis.cloud.user")) {
Expand Down

0 comments on commit 3371600

Please sign in to comment.