From b48824cf996c87bc550f666056356ff71193d4b5 Mon Sep 17 00:00:00 2001 From: Andriy Plokhotnyuk Date: Mon, 19 Sep 2022 13:12:11 +0200 Subject: [PATCH] A workaround to build Java 8 bytecode using Java 11 --- build.sbt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sbt b/build.sbt index 23e7a98..8de20c7 100644 --- a/build.sbt +++ b/build.sbt @@ -16,6 +16,8 @@ ThisBuild / tlSonatypeUseLegacyHost := true ThisBuild / crossScalaVersions := Seq(scala212, scala213, scala3) ThisBuild / scalaVersion := scala213 // the default Scala +ThisBuild / githubWorkflowJavaVersions += JavaSpec.temurin("11") +ThisBuild / tlJdkRelease := Some(8) lazy val root = tlCrossRootProject.aggregate(core, circe, jsoniterScala, polyline).settings(name := "geo-scala") @@ -25,6 +27,9 @@ lazy val commonSettings = Seq( "org.scalatestplus" %%% "scalacheck-1-16" % "3.2.13.0" % Test, "org.scalacheck" %%% "scalacheck" % "1.16.0" % Test ), + scalacOptions ++= Seq( + "-release 8" + ), // disable MiMa until we have proper version released on gnieh / all platforms // once removed, the tlBaseVersion has to adjusted as well mimaPreviousArtifacts := Set.empty