From 0938b3df0c50018f247c8541321fee518713919a Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Mon, 25 Sep 2023 11:35:33 +0100 Subject: [PATCH] Don't run Scala 3 tests on SBT 0.13.x --- .../src/test/scala/tests/SbtBuildToolSuite.scala | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/buildTools/src/test/scala/tests/SbtBuildToolSuite.scala b/tests/buildTools/src/test/scala/tests/SbtBuildToolSuite.scala index f9827b6f..908b320b 100644 --- a/tests/buildTools/src/test/scala/tests/SbtBuildToolSuite.scala +++ b/tests/buildTools/src/test/scala/tests/SbtBuildToolSuite.scala @@ -2,7 +2,18 @@ package tests abstract class SbtBuildToolSuite(val sbtVersion: String) extends BaseBuildToolSuite { - List("2.11.9", "2.12.18", "2.13.11", "3.3.0").foreach { scalaVersion => + val scala2Versions = List("2.11.9", "2.12.18", "2.13.11") + val scala3Versions = List("3.3.1") + + val versions = + sbtVersion match { + case s"0.13.$any" => + scala2Versions + case s"1.$any" => + scala2Versions ++ scala3Versions + } + + versions.foreach { scalaVersion => checkBuild( s"basic-sbt=$sbtVersion-scala=$scalaVersion", s"""|/build.sbt