Skip to content

Commit

Permalink
Merge branch 'main' into update/sbt-1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
johnynek authored Jul 31, 2024
2 parents 76c44b7 + 60eac5b commit 08c6b03
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
22 changes: 15 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.typesafe.tools.mima.core._
import Dependencies._
val scala211 = "2.11.12"
val scala212 = "2.12.19"
val scala213 = "2.13.12"
val scala213 = "2.13.14"
val scala3 = "3.3.3"

GlobalScope / tlCommandAliases ++= Map(
Expand Down Expand Up @@ -67,11 +67,18 @@ lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.settings(
name := "cats-parse",
libraryDependencies ++= {
Seq(
if (isScala211.value) cats211.value else cats.value,
munit.value % Test,
munitScalacheck.value % Test
)
if (isScala211.value)
Seq(
cats211.value,
munit211.value % Test,
munitScalacheck211.value % Test
)
else
Seq(
cats.value,
munit.value % Test,
munitScalacheck.value % Test
)
},
libraryDependencies ++= {
if (tlIsScala3.value) Nil else Seq("org.scala-lang" % "scala-reflect" % scalaVersion.value)
Expand Down Expand Up @@ -113,7 +120,8 @@ lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
)
.nativeSettings(
crossScalaVersions := (ThisBuild / crossScalaVersions).value.filterNot(_.startsWith("2.11")),
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "0.3.8").toMap,
// cats-parse 1.0.1 switches to Scala Native 0.5, reset tlVersionIntroduced
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "1.0.1").toMap,
coverageEnabled := false
)

Expand Down
2 changes: 1 addition & 1 deletion core/jvm/src/test/scala/cats/parse/JvmNumbersTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class JvmNumbersTest extends munit.ScalaCheckSuite {
case Left(_) => None
case Right(a) => Some(a)
}
val jawn = JParser.parseFromString(a).toOption.collect { case jn: JNum => jn }
val jawn = JParser.parseFromString(a).toOption.collect { case jnum: JNum => jnum }

assertEquals(jn.isDefined, jawn.isDefined)

Expand Down
8 changes: 5 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import sbt._
import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._

object Dependencies {
lazy val cats = Def.setting("org.typelevel" %%% "cats-core" % "2.11.0")
lazy val cats = Def.setting("org.typelevel" %%% "cats-core" % "2.12.0")
lazy val cats211 = Def.setting("org.typelevel" %%% "cats-core" % "2.0.0")
lazy val munit = Def.setting("org.scalameta" %%% "munit" % "1.0.0-M10")
lazy val munitScalacheck = Def.setting("org.scalameta" %%% "munit-scalacheck" % "1.0.0-M10")
lazy val munit = Def.setting("org.scalameta" %%% "munit" % "1.0.0")
lazy val munit211 = Def.setting("org.scalameta" %%% "munit" % "1.0.0-M10")
lazy val munitScalacheck = Def.setting("org.scalameta" %%% "munit-scalacheck" % "1.0.0")
lazy val munitScalacheck211 = Def.setting("org.scalameta" %%% "munit-scalacheck" % "1.0.0-M10")
lazy val fastParse = "com.lihaoyi" %% "fastparse" % "3.1.1"
lazy val parsley = "org.http4s" %% "parsley" % "1.5.0-M3"
lazy val jawnAst = Def.setting("org.typelevel" %% "jawn-ast" % "1.6.0")
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.4")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.1.0")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.7")
Expand Down

0 comments on commit 08c6b03

Please sign in to comment.