/
artemkorsakov
/
http4s_example
Обзор
Документация
Войти
/
artemkorsakov
/
http4s_example
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
project/Dependencies.scala
88 строк
2 KB
Artem Korsakov
Add examples for the article
23 мар 2026, 10:04
23 мар 2026, 10:04
b2cb4f5
Код
Авторство
О чём код?
import sbt.* object Dependencies { val Scala = "3.8.1" object cats { private val version = "2.13.0" private val effectVersion = "3.7-4972921" val core = "org.typelevel" %% "cats-core" % version val effect = "org.typelevel" %% "cats-effect" % effectVersion val effectKernel = "org.typelevel" %% "cats-effect-kernel" % effectVersion } object circe { private val version = "0.14.15" val core = "io.circe" %% "circe-core" % version val generic = "io.circe" %% "circe-generic" % version val literal = "io.circe" %% "circe-literal" % version val parser = "io.circe" %% "circe-parser" % version } object fs2 { val io = "co.fs2" %% "fs2-io" % "3.13.0" } object http4s { private val version = "0.23.33" val circe = "org.http4s" %% "http4s-circe" % version val client = "org.http4s" %% "http4s-client" % version val core = "org.http4s" %% "http4s-core" % version val emberServer = "org.http4s" %% "http4s-ember-server" % version val dsl = "org.http4s" %% "http4s-dsl" % version val server = "org.http4s" %% "http4s-server" % version } object ip4s { val core = "com.comcast" %% "ip4s-core" % "3.8.0" } object iron { private val version = "3.3.0" val circe = "io.github.iltotore" %% "iron-circe" % version val core = "io.github.iltotore" %% "iron" % version } object log4cats { private val version = "2.8.0" val slf4j = "org.typelevel" %% "log4cats-slf4j" % version val logback = "ch.qos.logback" % "logback-classic" % "1.5.32" } object weaver { private val version = "0.12.0" val cats = "org.typelevel" %% "weaver-cats" % version } val coreLibs: Seq[ModuleID] = Seq( cats.core, cats.effect, cats.effectKernel, circe.core, circe.generic, fs2.io, http4s.circe, http4s.core, http4s.emberServer, http4s.dsl, http4s.server, ip4s.core, iron.circe, iron.core ) val testLibs: Seq[ModuleID] = Seq( circe.literal, circe.parser, http4s.client, log4cats.logback, log4cats.slf4j, weaver.cats ).map(_ % Test) }