Skip to content

Commit 750c233

Browse files
committed
wip
1 parent 90eae2e commit 750c233

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ lazy val scalafixTests = project
333333
.enablePlugins(BuildInfoPlugin, ScalafixTestkitPlugin)
334334

335335
val ciScalaVersion = sys.env.get("CI_SCALA_VERSION").flatMap(Version.parse)
336-
val ciPlatform = sys.env.get("CI_PLATFORM")
336+
val ciPlatform = sys.env.get("CI_PLATFORM").map(p => if (p == "JVM") "" else p)
337337
val isScalafix = sys.env.get("CI_MODE") == Some("testScalafix")
338338
val isScalafmt = sys.env.get("CI_MODE") == Some("testScalafmt")
339339
val isBinaryCompat = sys.env.get("CI_MODE") == Some("testBinaryCompat")

project/MultiScalaProject.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ import java.io.File
3030
trait MultiScala {
3131
def majorMinor(in: String): String = {
3232
val Array(major, minor, _) = in.split("\\.")
33-
major + minor
33+
if (major == "2")
34+
s"$major$minor"
35+
else
36+
major
3437
}
3538

3639
def projectIdPerScala(name: String, scalaV: String): String = s"$name${majorMinor(scalaV)}"

project/Version.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ object Version {
77
def parse(raw: String): Option[String] = {
88
raw match {
99
case versionRegex0(major, minor, _) =>
10-
Some(s"${major.toInt}{minor.toInt}")
10+
Some(s"${major.toInt}${minor.toInt}")
1111
case versionRegex1(major, minor, _, _) =>
12-
Some(s"${major.toInt}{minor.toInt}")
12+
Some(s"${major.toInt}${minor.toInt}")
1313
case versionRegex2(major, "x") =>
1414
Some(s"${major.toInt}")
1515
case versionRegex2(major, minor) =>
16-
Some(s"${major.toInt}{minor.toInt}")
16+
Some(s"${major.toInt}${minor.toInt}")
1717
case _ =>
1818
None
1919
}

0 commit comments

Comments
 (0)