-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
85 lines (77 loc) · 2.88 KB
/
build.sbt
File metadata and controls
85 lines (77 loc) · 2.88 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
import java.time._
import java.time.format.DateTimeFormatter
lintUnusedKeysOnLoad in Global := false
scalaVersion := "2.13.8"
scalafmtOnCompile := true
lazy val It = config("it") extend Test
configs(It)
inConfig(It)(Defaults.itSettings)
inConfig(It)(org.scalafmt.sbt.ScalafmtPlugin.scalafmtConfigSettings)
buildInfoPackage := "com.github.pdalpra.computerdb"
buildInfoObject := "ComputerDatabaseBuildInfo"
buildInfoOptions += BuildInfoOption.ToJson
buildInfoKeys := Seq(
"name" -> name.value,
"buildTimestamp" -> ZonedDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.ISO_INSTANT),
"commit" -> git.gitHeadCommit.value
)
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
val circeVersion = "0.14.4"
val doobieVersion = "1.0.0-RC2"
val enumeratumVersion = "1.7.2"
val fs2Version = "3.6.1"
val http4sVersion = "1.0.0-M24"
val pureconfigVersion = "0.17.2"
val refinedVersion = "0.10.1"
libraryDependencies ++= Seq(
// Cats / Cats Effect
"org.typelevel" %% "cats-core" % "2.9.0",
"org.typelevel" %% "cats-effect" % "3.4.6",
"org.typelevel" %% "kittens" % "3.0.0",
"org.typelevel" %% "mouse" % "1.2.1",
// Http4s / Scalatags
"org.http4s" %% "http4s-circe" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"com.lihaoyi" %% "scalatags" % "0.12.0",
// FS2
"co.fs2" %% "fs2-core" % fs2Version,
"co.fs2" %% "fs2-io" % fs2Version,
// Circe
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-refined" % circeVersion,
"io.circe" %% "circe-fs2" % "0.14.1",
// Doobie
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-h2" % doobieVersion,
// Pureconfig
"com.github.pureconfig" %% "pureconfig" % pureconfigVersion,
"com.github.pureconfig" %% "pureconfig-cats-effect" % pureconfigVersion,
// Refined
"eu.timepit" %% "refined" % refinedVersion,
"eu.timepit" %% "refined-cats" % refinedVersion,
"eu.timepit" %% "refined-pureconfig" % refinedVersion,
"org.tpolecat" %% "doobie-refined" % doobieVersion,
// Logging
"org.typelevel" %% "log4cats-slf4j" % "2.5.0",
"ch.qos.logback" % "logback-classic" % "1.4.5" % Runtime,
// Misc
"com.beachape" %% "enumeratum" % enumeratumVersion,
"com.beachape" %% "enumeratum-cats" % enumeratumVersion,
// Testing
"org.scalatest" %% "scalatest" % "3.2.15" % "test,it",
"org.scalatestplus" %% "scalacheck-1-14" % "3.2.2.0" % "test",
"org.scalacheck" %% "scalacheck" % "1.16.0" % "test"
)
addCommandAlias(
"ci-checks",
List(
"all clean scalafmtSbtCheck scalafmtCheckAll",
"coverage",
"test",
"it:test",
"coverageReport"
).mkString(";", ";", "")
)