From 04e5e74ccd26ef9e1479ea9d3e182863619511d6 Mon Sep 17 00:00:00 2001 From: Hugo van Rijswijk Date: Wed, 10 Sep 2025 16:09:56 +0200 Subject: [PATCH] Build against Scala Native 0.5.x and Scala.js 1.20.x Updates dependencies to build against Native 0.5.x and Scala.js 1.20.x. Notes: - Disabled the http4s native build, as http4s is not yet released for Scala Native 0.5.x. - FS2 are using release candidates for Native 0.5.x --- build.sbt | 19 ++++++++++--------- project/plugins.sbt | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/build.sbt b/build.sbt index 0f804cc..682b6f4 100644 --- a/build.sbt +++ b/build.sbt @@ -1,16 +1,17 @@ Global / onChangedBuildSource := ReloadOnSourceChanges val V = new { - val cats = "2.10.0" - val catsEffect = "3.6.3" - val circe = "0.14.8" - val http4s = "0.23.32" - val munit = "1.0.0-M11" - val munitCatsEffect = "2.1.0" + val cats = "2.13.0" + val catsEffect = "3.7.0" + val circe = "0.14.15" + val http4s = "0.23.33" + val munit = "1.2.4" + val munitScalacheck = "1.2.0" + val munitCatsEffect = "2.2.0" val scala = "3.3.7" val slf4j = "1.7.36" val slf4j2 = "2.0.17" - val tzdb = "2.5.0" + val tzdb = "2.6.0" } val D = new { @@ -23,7 +24,7 @@ val D = new { val http4s = Def.setting("org.http4s" %%% "http4s-core" % V.http4s) val munit = Def.setting("org.scalameta" %%% "munit" % V.munit) val munitCatsEffect = Def.setting("org.typelevel" %%% "munit-cats-effect" % V.munitCatsEffect) - val munitScalacheck = Def.setting("org.scalameta" %%% "munit-scalacheck" % V.munit) + val munitScalacheck = Def.setting("org.scalameta" %%% "munit-scalacheck" % V.munitScalacheck) val circe = Def.setting("io.circe" %%% "circe-parser" % V.circe) val tzdb = Def.setting("io.github.cquiroz" %%% "scala-java-time-tzdb" % V.tzdb) } @@ -109,7 +110,7 @@ lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform) ) val http4sFolder = file("./modules/http4s") -lazy val http4s = crossProject(JSPlatform, JVMPlatform, NativePlatform) +lazy val http4s = crossProject(JSPlatform, JVMPlatform /* , NativePlatform */ ) .crossType(CrossType.Pure) .in(http4sFolder) .settings( diff --git a/project/plugins.sbt b/project/plugins.sbt index f1b21c5..0ad04f1 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,7 +2,7 @@ addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.8.0") addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.7.0") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.20.1") addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2") -addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17") +addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.10") addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5") addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.8")