Skip to content

Commit

Permalink
Merge pull request #59 from sjrd/tasty-query-1.4.0-scala-3.5
Browse files Browse the repository at this point in the history
Upgrade to Scala 3.5.0 and tasty-query 1.4.0.
  • Loading branch information
sjrd authored Oct 2, 2024
2 parents 0ad94f9 + e316ce9 commit 7ff5f74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val rtJarOpt = taskKey[Option[String]]("Path to rt.jar if it exists")
val javalibEntry = taskKey[String]("Path to rt.jar or \"jrt:/\"")

inThisBuild(Def.settings(
crossScalaVersions := Seq("3.4.0"),
crossScalaVersions := Seq("3.5.0"),
scalaVersion := crossScalaVersions.value.head,

scalacOptions ++= Seq(
Expand All @@ -28,9 +28,12 @@ inThisBuild(Def.settings(
Developer("bishabosha", "Jamie Thompson", "bishbashboshjt@gmail.com", url("https://github.com/bishabosha")),
),

versionPolicyIntention := Compatibility.BinaryAndSourceCompatible,
versionPolicyIntention := Compatibility.BinaryCompatible,
// Ignore dependencies to internal modules whose version is like `1.2.3+4...` (see https://github.com/scalacenter/sbt-version-policy#how-to-integrate-with-sbt-dynver)
versionPolicyIgnoredInternalDependencyVersions := Some("^\\d+\\.\\d+\\.\\d+\\+\\d+".r),

// Temporary until we upgrade to an sbt-tasty-mima that supports Scala 3.5.x out of the box
tastyMiMaTastyQueryVersionOverride := Some("1.4.0"),
))

val commonSettings = Seq(
Expand All @@ -44,7 +47,7 @@ val strictCompileSettings = Seq(
scalacOptions ++= Seq(
"-Xfatal-warnings",
"-Yexplicit-nulls",
"-Ysafe-init",
"-Wsafe-init",
"-source:future",
),
)
Expand Down Expand Up @@ -94,7 +97,7 @@ lazy val tastyMiMa =
testFrameworks += new TestFramework("munit.Framework")
)
.settings(
libraryDependencies += "ch.epfl.scala" %% "tasty-query" % "1.3.0",
libraryDependencies += "ch.epfl.scala" %% "tasty-query" % "1.4.0",

Test / rtJarOpt := {
for (bootClasspath <- Option(System.getProperty("sun.boot.class.path"))) yield {
Expand Down
3 changes: 3 additions & 0 deletions tasty-mima/src/main/scala/tastymima/TypeTranslator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ private[tastymima] final class TypeTranslator(oldCtx: Context, newCtx: Context):
}
AppliedType(translatedTycon, translatedArgs)

case oldType: FlexibleType =>
FlexibleType(translateType(oldType.nonNullableType))

case oldType: ByNameType =>
ByNameType(translateType(oldType.resultType))

Expand Down

0 comments on commit 7ff5f74

Please sign in to comment.