From bece316725f2610419bda455c7facf35c05a1f1d Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Wed, 25 Mar 2026 14:18:14 +0900 Subject: [PATCH] [2.x] test: Update ZincComponentCompilerSpec (#8979) --- .../inc/ZincComponentCompilerSpec.scala | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/zinc-lm-integration/src/test/scala/sbt/internal/inc/ZincComponentCompilerSpec.scala b/zinc-lm-integration/src/test/scala/sbt/internal/inc/ZincComponentCompilerSpec.scala index 861e3d884..9262d8583 100644 --- a/zinc-lm-integration/src/test/scala/sbt/internal/inc/ZincComponentCompilerSpec.scala +++ b/zinc-lm-integration/src/test/scala/sbt/internal/inc/ZincComponentCompilerSpec.scala @@ -12,29 +12,19 @@ import sbt.internal.util.ConsoleLogger import sbt.io.IO class ZincComponentCompilerSpec extends IvyBridgeProviderSpecification { - val scala2105 = "2.10.5" - val scala2106 = "2.10.6" - val scala2118 = "2.11.8" - val scala21111 = "2.11.11" + val scala2107 = "2.10.7" + val scala21112 = "2.11.12" val scala21221 = "2.12.21" val scala21311 = "2.13.11" - def isJava8: Boolean = sys.props("java.specification.version") == "1.8" - val logger = ConsoleLogger() - it should "compile the bridge for Scala 2.10.5 and 2.10.6" in { case given FixtureParam => - if (isJava8) { - IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala2105) should exist) - IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala2106) should exist) - } else () + it should "compile the bridge for Scala 2.10.7" in { case given FixtureParam => + IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala2107) should exist) } - it should "compile the bridge for Scala 2.11.8 and 2.11.11" in { case given FixtureParam => - if (isJava8) { - IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala2118) should exist) - IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala21111) should exist) - } else () + it should "compile the bridge for Scala 2.11.12" in { case given FixtureParam => + IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala21112) should exist) } it should "compile the bridge for Scala 2.12.21" in { case given FixtureParam =>