From f87c5c45dabbf8dbffc4179e951d5643fb7a972e Mon Sep 17 00:00:00 2001 From: Brice Jaglin Date: Sat, 24 Feb 2024 11:40:22 +0100 Subject: [PATCH] old sbt versions can run on recent JDKs when loaded with scripted --- build.sbt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/build.sbt b/build.sbt index f2fd7a88..a37fa572 100644 --- a/build.sbt +++ b/build.sbt @@ -50,17 +50,6 @@ scalaVersion := "2.12.19" // keep this as low as possible to avoid running into binary incompatibility such as https://github.com/sbt/sbt/issues/5049 pluginCrossBuild / sbtVersion := "1.3.1" -scriptedSbt := { - val jdk = System.getProperty("java.specification.version").toDouble - - if (jdk >= 21) - "1.9.0" // first release that supports JDK21 - else if (jdk >= 17) - "1.5.5" // first release that supports JDK17 - else - "1.3.0" -} - libraryDependencies += compilerPlugin(scalafixSemanticdb) scalacOptions ++= List("-Ywarn-unused", "-Yrangepos")