Skip to content

Commit

Permalink
update scalafix and native packager
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Dec 2, 2024
1 parent 51f40e2 commit df00de4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import trading.events.*
import io.circe.Codec
import io.circe.Decoder

// Upgrading from circe 0.14.6 to 0.14.7 requires this instance ¯\_(ツ)_/¯
// Upgrading from circe 0.14.6 to 0.14.7 requires this instance ¯\_(ツ)_/¯
given Codec[Either[AuthorEvent, ForecastEvent]] = Codec.AsObject.derived

final case class OutboxEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ object SQL:
}

given Read[Forecast] = Read[(UUID, String, String, String, Int)].map { (id, sl, tag, desc, sc) =>
Forecast(ForecastId(id), Symbol(sl.refineUnsafe), ForecastTag.from(tag), ForecastDescription(desc), ForecastScore(sc))
Forecast(
ForecastId(id),
Symbol(sl.refineUnsafe),
ForecastTag.from(tag),
ForecastDescription(desc),
ForecastScore(sc)
)
}

extension (res: VoteResult)
Expand Down
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
addSbtPlugin("io.spray" % "sbt-revolver" % "0.10.0")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.10.4")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.17.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("com.github.reibitto" % "sbt-welcome" % "0.4.0")

0 comments on commit df00de4

Please sign in to comment.