This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
60 lines (51 loc) · 1.56 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
val scalaV = "3.3.1"
ThisBuild / organization := "es.jesusmtnez"
ThisBuild / organizationName := "JesusMtnez"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / scalaVersion := scalaV
val circeV = "0.14.6"
lazy val common = project
.in(file("common"))
.settings(name := "todobackend-common")
val http4sV = "1.0.0-M40"
val logbackV = "1.4.14"
val munitV = "0.7.29"
val munitCE3V = "2.0.0-M4"
lazy val `todobackend-http4s` = project
.in(file("todobackend-http4s"))
.settings(
name := "todobackend-http4s",
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-ember-client" % http4sV,
"org.http4s" %% "http4s-ember-server" % http4sV,
"org.http4s" %% "http4s-dsl" % http4sV,
"org.http4s" %% "http4s-circe" % http4sV,
"io.circe" %% "circe-generic" % circeV,
"ch.qos.logback" % "logback-classic" % logbackV,
"org.scalameta" %% "munit" % munitV % Test,
"org.typelevel" %% "munit-cats-effect" % munitCE3V % Test
)
)
.dependsOn(common)
.enablePlugins(BuildInfoPlugin)
val zioHttpV = "3.0.0-RC4"
lazy val `todobackend-zio-http` = project
.in(file("todobackend-zio-http"))
.settings(
name := "todobackend-zio-http",
libraryDependencies ++= Seq(
"dev.zio" %% "zio-http" % zioHttpV
)
)
.dependsOn(common)
.enablePlugins(BuildInfoPlugin)
lazy val root = project
.in(file("."))
.settings(publish / skip := true)
.aggregate(
common,
`todobackend-http4s`,
`todobackend-zio-http`
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt Test/scalafmt")