mirror of https://github.com/sbt/sbt.git
Update CrossVersionUtil.scala (#426)
This commit is contained in:
parent
689f347bde
commit
cf5fc207b0
|
|
@ -64,10 +64,10 @@ object CrossVersionUtil {
|
|||
* Compatible versions include 2.10.0-1 and 2.10.1-M1 for Some(2, 10), but not 2.10.0-RC1.
|
||||
*/
|
||||
private[sbt] def scalaApiVersion(v: String): Option[(Long, Long)] = v match {
|
||||
case ReleaseV(x, y, _, _) => Some((x.toLong, y.toLong))
|
||||
case BinCompatV(x, y, _, _, _) => Some((x.toLong, y.toLong))
|
||||
case NonReleaseV_1(x, y, z, _) if z.toInt > 0 => Some((x.toLong, y.toLong))
|
||||
case _ => None
|
||||
case ReleaseV(x, y, _, _) => Some((x.toLong, y.toLong))
|
||||
case BinCompatV(x, y, _, _, _) => Some((x.toLong, y.toLong))
|
||||
case NonReleaseV_1(x, y, z, _) if z.toLong > 0 => Some((x.toLong, y.toLong))
|
||||
case _ => None
|
||||
}
|
||||
|
||||
private[sbt] def partialVersion(s: String): Option[(Long, Long)] =
|
||||
|
|
|
|||
Loading…
Reference in New Issue