Skip to content

Commit

Permalink
*: Update Scala 2.13.1 to 2.13.6
Browse files Browse the repository at this point in the history
Problem

The latest Scala 2.13.x version is compatible with Scala 3.0.0 and includes many useful compiler-tools (e.g. warnings) to make the transition - and development in general - easier. Even if we don't have a real Scala 3 cross-build, 2.13.6 can be consumed by Scala 3 projects.

Solution

Updating Scala 2.13.1 to 2.13.6

Result

The build uses Scala 2.13.6. I also used the 2.13.x version as default as it has many extremely useful warnings that 2.12.x doesn't have. The only part that needed fixing is some reflection code as 2.13.5 changed encoding of method-parameter names.

Signed-off-by: Moses Nakamura <mnakamura@twitter.com>

Differential Revision: https://phabricator.twitter.biz/D680820
  • Loading branch information
felixbr authored and jenkins committed Jun 8, 2021
1 parent 8aaf226 commit 7be3a97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def jdk11GcJavaOptions: Seq[String] = {
}

val defaultProjectSettings = Seq(
scalaVersion := "2.12.12",
crossScalaVersions := Seq("2.12.12", "2.13.1")
scalaVersion := "2.13.6",
crossScalaVersions := Seq("2.12.12", "2.13.6")
)

val baseSettings = Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,11 @@ class ScalaValidator private[validation] (
case Some(names) =>
names
case _ =>
getExecutableParameterNames(executableDescriptor.executable)
getExecutableParameterNames(executableDescriptor.executable).map { maybeMangled =>
DescriptorFactory.unmangleName(
maybeMangled
) // parameter names are encoded since Scala 2.13.5
}
}

// executable parameter constraints
Expand Down

0 comments on commit 7be3a97

Please sign in to comment.