Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly setting jvmToolchain to fix compatibility issues for Java 8 projects #202

Merged
merged 8 commits into from
Mar 25, 2023
4 changes: 4 additions & 0 deletions ktoml-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ plugins {
kotlin {
explicitApi()

jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}

js(IR) {
browser()
nodejs()
Expand Down
4 changes: 4 additions & 0 deletions ktoml-file/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ plugins {
kotlin {
explicitApi()

jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}

jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
Expand Down