-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
72 lines (63 loc) · 1.92 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
61
62
63
64
65
66
67
68
69
70
71
72
lazy val global = project
.in(file("."))
.settings(settings)
.aggregate(demos, exercises, application, webapp)
lazy val demos = project
.settings(
name := "demos",
settings
)
lazy val exercises = project
.settings(
name := "exercises",
settings
)
lazy val application = project
.settings(
name := "application",
settings
)
lazy val webapp = project
.settings(
name := "webapp",
settings
)
lazy val settings = Seq(
organization := "io.doubleloop",
scalaVersion := "3.2.2",
version := "0.1.0-SNAPSHOT",
scalacOptions ++= scalacSettings,
resolvers ++= resolversSettings,
libraryDependencies ++= libsSettings,
Test / parallelExecution := false,
testFrameworks += new TestFramework("munit.Framework")
)
// More info:
// 2.x https://docs.scala-lang.org/overviews/compiler-options/index.html
// 3.x https://docs.scala-lang.org/scala3/guides/migration/options-new.html
// 2.x to 3.x https://docs.scala-lang.org/scala3/guides/migration/options-intro.html
lazy val scalacSettings = Seq(
"-no-indent"
)
lazy val resolversSettings =
Resolver.sonatypeOssRepos("public") ++
Resolver.sonatypeOssRepos("snapshots") ++
Resolver.sonatypeOssRepos("releases")
val CatsCoreVersion = "2.9.0"
val CatsEffectVersion = "3.5.3"
val CirisVersion = "3.0.0"
val Http4sVersion = "0.23.18"
val MunitVersion = "0.7.29"
val LogbackVersion = "1.4.14"
val MunitCatsEffectVersion = "1.0.7"
lazy val libsSettings = Seq(
"org.typelevel" %% "cats-core" % CatsCoreVersion,
"org.typelevel" %% "cats-effect" % CatsEffectVersion,
"is.cir" %% "ciris" % CirisVersion,
"org.http4s" %% "http4s-ember-server" % Http4sVersion,
"org.http4s" %% "http4s-circe" % Http4sVersion,
"org.http4s" %% "http4s-dsl" % Http4sVersion,
"ch.qos.logback" % "logback-classic" % LogbackVersion,
"org.scalameta" %% "munit" % MunitVersion % Test,
"org.typelevel" %% "munit-cats-effect-3" % MunitCatsEffectVersion % Test
)