From 14d86ed3bc16455cec15fc1dc148602f48fa5e6b Mon Sep 17 00:00:00 2001 From: johannes karoff Date: Wed, 7 Aug 2024 17:11:45 +0200 Subject: [PATCH] cross build scala-native --- build.sbt | 4 ++-- project/Deps.scala | 4 ++-- project/plugins.sbt | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 71807c4..653a837 100644 --- a/build.sbt +++ b/build.sbt @@ -36,7 +36,7 @@ lazy val commonSettings = Seq( enablePlugins(ScalaJSPlugin) -lazy val chameleon = crossProject(JSPlatform, JVMPlatform) +lazy val chameleon = crossProject(JSPlatform, JVMPlatform, NativePlatform) .crossType(CrossType.Pure) .settings(commonSettings) .settings( @@ -65,7 +65,7 @@ lazy val chameleon = crossProject(JSPlatform, JVMPlatform) }) ) -lazy val http4s = crossProject(JSPlatform, JVMPlatform) +lazy val http4s = crossProject(JSPlatform, JVMPlatform, NativePlatform) .crossType(CrossType.Pure) .dependsOn(chameleon) .settings(commonSettings) diff --git a/project/Deps.scala b/project/Deps.scala index 4adfc9a..1cfb281 100644 --- a/project/Deps.scala +++ b/project/Deps.scala @@ -15,14 +15,14 @@ object Deps { val scalapb = dep("com.thesamet.scalapb" %%% "scalapb-runtime" % "0.11.17") val circe = new { - private val version = "0.14.1" + private val version = "0.14.9" val core = dep("io.circe" %%% "circe-core" % version) val parser = dep("io.circe" %%% "circe-parser" % version) } val scodec = new { val core = dep("org.scodec" %%% "scodec-core" % "1.11.10") val core2 = dep("org.scodec" %%% "scodec-core" % "2.3.1") - val bits = dep("org.scodec" %%% "scodec-bits" % "1.1.38") + val bits = dep("org.scodec" %%% "scodec-bits" % "1.2.0") } val upickle = dep("com.lihaoyi" %%% "upickle" % "3.3.1") val jsoniter = dep("com.github.plokhotnyuk.jsoniter-scala" %%% "jsoniter-scala-core" % "2.30.7") diff --git a/project/plugins.sbt b/project/plugins.sbt index 9a12d74..59e6983 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,6 +1,9 @@ addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0") +addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2") +addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.4") + addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1") addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")