Fix Scala 2.13-3.0 sandwich on Scala >= 3.0.0

The binary version of Scala >= 3.0.0 will be 3, but the logic was
hardcoded for 3.0.
This commit is contained in:
Guillaume Martres 2021-03-31 13:53:30 +02:00
parent e31e18927c
commit 24dba24b2a
1 changed files with 1 additions and 1 deletions

View File

@ -3786,7 +3786,7 @@ object Classpaths {
private[sbt] def isScala2Scala3Sandwich(sbv1: String, sbv2: String): Boolean = {
def compare(a: String, b: String): Boolean =
a == "2.13" && (b.startsWith("0.") || b.startsWith("3.0"))
a == "2.13" && (b.startsWith("0.") || b.startsWith("3"))
compare(sbv1, sbv2) || compare(sbv2, sbv1)
}