This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
72 lines (65 loc) · 2.13 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
inThisBuild(
List(
organization := "com.kubukoz",
homepage := Some(url("https://github.com/kubukoz/flawless")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"kubukoz",
"Jakub Kozłowski",
url("https://kubukoz.com")
)
)
)
)
val compilerPlugins = List(
compilerPlugin("org.typelevel" % "kind-projector" % "0.13.0").cross(CrossVersion.full),
compilerPlugin("com.kubukoz" % "better-tostring" % "0.3.5").cross(CrossVersion.full),
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
)
val commonSettings = Seq(
scalaVersion := "2.13.5",
name := "flawless",
scalacOptions -= "-Xfatal-warnings",
scalacOptions += "-Ymacro-annotations",
libraryDependencies ++= List(
"co.fs2" %% "fs2-core" % "3.0.2",
"org.typelevel" %% "cats-tagless-macros" % "0.14.0",
"org.typelevel" %% "cats-mtl" % "1.2.1",
"com.github.julien-truffaut" %% "monocle" % "2.0.3",
"org.typelevel" %% "cats-effect-std" % "3.2.9",
"org.typelevel" %% "cats-effect-kernel" % "3.2.9",
"com.softwaremill.diffx" %% "diffx-core" % "0.3.30"
) ++ compilerPlugins
)
val noPublish = Seq((publish / skip) := true)
val core = project.settings(commonSettings).settings(name += "-core")
val tests =
project
.settings(
commonSettings,
libraryDependencies ++= List(
"org.typelevel" %% "cats-effect" % "3.2.9",
"com.softwaremill.diffx" %% "diffx-cats" % "0.3.30"
)
)
.settings(name += "-tests")
.settings(noPublish)
.dependsOn(core)
val examples =
project
.settings(
commonSettings,
libraryDependencies ++= List(
"org.typelevel" %% "cats-effect" % "3.2.9",
//this won't work for now
"org.tpolecat" %% "doobie-hikari" % "1.0.0-M4",
"org.postgresql" % "postgresql" % "42.2.20"
)
)
.settings(name += "-tests", (publish / skip) := true)
.settings(noPublish)
.dependsOn(core)
val flawless =
project.in(file(".")).settings(commonSettings).settings(noPublish).aggregate(core, examples, tests)