Merge pull request #7759 from Friendseeker/develop

[2.x] Remove Scala 2 cross build for `util`
This commit is contained in:
adpi2 2024-10-14 10:31:27 +02:00 committed by GitHub
commit 9517813190
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 20 deletions

View File

@ -141,10 +141,6 @@ jobs:
./sbt -v --client "serverTestProj/test"
# ./sbt -v --client doc
./sbt -v --client "all $UTIL_TESTS"
./sbt -v --client ++2.13.x
./sbt -v --client "all $UTIL_TESTS"
./sbt -v --client ++2.12.x
./sbt -v --client "all $UTIL_TESTS"
- name: Build and test (2)
if: ${{ matrix.jobtype == 2 }}
shell: bash
@ -171,8 +167,6 @@ jobs:
shell: bash
run: |
./sbt -v --client test
./sbt -v --client "++2.13.x; all $UTIL_TESTS"
./sbt -v --client "++2.12.x; all $UTIL_TESTS"
# - name: Build and test (6)
# if: ${{ matrix.jobtype == 6 }}
# shell: bash

View File

@ -104,12 +104,6 @@ def commonSettings: Seq[Setting[_]] = Def.settings(
def utilCommonSettings: Seq[Setting[_]] = Def.settings(
baseSettings,
crossScalaVersions := Seq(scala212, scala213, scala3),
libraryDependencies += Dependencies.scalaCollectionCompat,
libraryDependencies ++= {
if (scalaBinaryVersion.value == "3") Nil
else Seq(compilerPlugin(kindProjector))
}
)
def minimalSettings: Seq[Setting[_]] =
@ -336,11 +330,6 @@ lazy val utilCore = project
.settings(
utilCommonSettings,
name := "Util Core",
libraryDependencies ++= {
if (scalaBinaryVersion.value.startsWith("2")) {
Seq("org.scala-lang" % "scala-reflect" % scalaVersion.value)
} else Seq.empty
},
Utils.keywordsSettings,
utilMimaSettings
)
@ -1337,7 +1326,6 @@ def customCommands: Seq[Setting[_]] = Seq(
"clean" ::
"+lowerUtils/compile" ::
"+lowerUtils/publishSigned" ::
s"++$scala212" ::
state
},
commands += Command.command("release") { state =>
@ -1481,7 +1469,6 @@ lazy val lmCoursierDependencies = Def.settings(
),
excludeDependencies ++= Seq(
ExclusionRule("org.scala-lang.modules", "scala-xml_2.13"),
ExclusionRule("org.scala-lang.modules", "scala-collection-compat_2.13")
),
)

View File

@ -9,7 +9,6 @@
package sbt.internal.util
import Relation._
import scala.collection.compat.*
object Relation {