Newer
Older
miracle-tv-backend / build.sbt
val scala3Version = "3.4.2"

resolvers += "Akka library repository" at "https://repo.akka.io/maven"
resolvers += "Maven Repo" at  "https://repo1.maven.org/maven2/"
val PekkoVersion = "1.1.0-M1"
val PekkoHttpVersion = "1.1.0-M1"
val CirceVersion = "0.14.1"
val SangriaAkkaVersion = "0.0.4"
val PekkoHttpJsonVersion = "2.6.0"

val PekkoDeps = Seq(
      "org.apache.pekko" %% "pekko-actor-typed",
      "org.apache.pekko" %% "pekko-stream",
).map(_ % PekkoVersion)

val PekkoHttp = Seq(
    "org.apache.pekko" %% "pekko-http",
).map(_ % PekkoHttpVersion)

val PekkoHttpJson = Seq(
  "com.github.pjfanning" %% "pekko-http-circe",
).map(_ % PekkoHttpJsonVersion)

val CirceDeps = Seq(
  "io.circe" %% "circe-core",
  "io.circe" %% "circe-generic",
  "io.circe" %% "circe-parser",
).map(_ % CirceVersion)

val SangriaDeps = Seq(
  "org.sangria-graphql" %% "sangria" % "4.1.0",
  "org.sangria-graphql" %% "sangria-slowlog" % "3.0.0",
  "org.sangria-graphql" %% "sangria-circe" % "1.3.2",
)

val SangriaAkkaDeps = Seq(
  "org.sangria-graphql" %% "sangria-akka-http-core",
  "org.sangria-graphql" %% "sangria-akka-http-circe",
).map(_ % SangriaAkkaVersion)


lazy val root = project
  .in(file("."))
  .settings(
    ss = name := "miracle-tv-backend",
    version := "0.1.0-SNAPSHOT",

    scalaVersion := scala3Version,

    libraryDependencies ++= Seq(
      "ch.qos.logback" % "logback-classic" % "1.5.6",
      "io.getquill"    %% "quill-jdbc-zio" % "4.8.5",
      "org.postgresql" % "postgresql"     % "42.3.1"
    ) ++ PekkoDeps ++ PekkoHttp ++ CirceDeps ++ SangriaDeps ++ PekkoHttpJson
  )