From 976ae70c634c21ed588bc4d2a1f5b5f9afa75b2e Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sat, 19 Oct 2024 12:35:30 +0900 Subject: [PATCH] drop sbt 0.13 cross build --- build.sbt | 7 ------- project/SbtAxis.scala | 1 - .../scala-2.10/com/timushev/sbt/updates/Compat.scala | 9 --------- 3 files changed, 17 deletions(-) delete mode 100644 src/main/scala-2.10/com/timushev/sbt/updates/Compat.scala diff --git a/build.sbt b/build.sbt index add2612c..1ce4abaa 100644 --- a/build.sbt +++ b/build.sbt @@ -23,18 +23,11 @@ lazy val `sbt-1.x` = SbtAxis("1.x", "1.1.5") lazy val `sbt-latest` = SbtAxis() lazy val `sbt-1.0.0` = SbtAxis("1.0.0") -lazy val `sbt-0.13.x` = SbtAxis("0.13.x", "0.13.16") -lazy val `sbt-0.13.16` = SbtAxis("0.13.16") -lazy val `sbt-0.13.9` = SbtAxis("0.13.9") - lazy val `sbt-updates` = (projectMatrix in file(".")) .settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % "test") .sbtPluginRow(`sbt-1.x`) .sbtScriptedRow(`sbt-1.0.0`, `sbt-1.x`) .sbtScriptedRow(`sbt-latest`, `sbt-1.x`) - .sbtPluginRow(`sbt-0.13.x`) - .sbtScriptedRow(`sbt-0.13.9`, `sbt-0.13.x`) - .sbtScriptedRow(`sbt-0.13.16`, `sbt-0.13.x`) lazy val root = (project in file(".")) .withId("sbt-updates") diff --git a/project/SbtAxis.scala b/project/SbtAxis.scala index c1f02d3e..075c465d 100644 --- a/project/SbtAxis.scala +++ b/project/SbtAxis.scala @@ -8,7 +8,6 @@ case class SbtAxis(fullVersion: Option[String], idSuffix: String, directorySuffi extends VirtualAxis.WeakAxis { val scalaVersion: String = fullVersion.map(VersionNumber(_)) match { - case Some(VersionNumber(Seq(0, 13, _*), _, _)) => "2.10.7" case Some(VersionNumber(Seq(1, _*), _, _)) | None => "2.12.10" case _ => sys.error(s"Unsupported sbt version: $fullVersion") } diff --git a/src/main/scala-2.10/com/timushev/sbt/updates/Compat.scala b/src/main/scala-2.10/com/timushev/sbt/updates/Compat.scala deleted file mode 100644 index 92f821da..00000000 --- a/src/main/scala-2.10/com/timushev/sbt/updates/Compat.scala +++ /dev/null @@ -1,9 +0,0 @@ -package com.timushev.sbt.updates - -import sbt.ModuleID - -object Compat { - implicit class ModuleIDExt(val module: ModuleID) { - def withRevision0(revision: String): ModuleID = module.copy(revision = revision) - } -}