Skip to content

Release 1.2.3 #191

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

Merged
merged 14 commits into from
Jan 5, 2023
Merged
Prev Previous commit
Next Next commit
explicit java version for :core
  • Loading branch information
Jolanrensen committed Dec 28, 2022
commit df2a4f1e73b5fd0841ed9957277dd23c06ac20b0
6 changes: 6 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@ java {
languageVersion.set(
JavaLanguageVersion.of(Versions.jvmTarget)
)
} else if (Versions.jvmTarget == "1.8" || Versions.jvmTarget == "8") {
languageVersion.set(
JavaLanguageVersion.of(8)
)
}
}
}

tasks.withType<ScalaCompile> {
if (Versions.scalaCompat.toDouble() > 2.12) { // scala 2.12 will always target java 8
targetCompatibility = Versions.jvmTarget
} else if (Versions.jvmTarget == "1.8" || Versions.jvmTarget == "8") {
targetCompatibility = "1.8"
}
}

Expand Down