-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
97 lines (91 loc) · 2.63 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name := "ChessScala"
import Dependencies._
import sbt.Keys.libraryDependencies
version := "0.1"
lazy val commonSettings = Seq(
scalacOptions ++= List("-Ymacro-annotations", "-Yrangepos", "-Wconf:cat=unused:info"),
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.13.2" cross CrossVersion.full),
scalacOptions -= "-Ywarn-unused",
scalacOptions -= "-Xfatal-warnings"
)
lazy val chessLogic = (project in file("chessLogic"))
.settings(commonSettings)
.settings(
name := "chessLogic",
scalaVersion := "2.13.7",
libraryDependencies ++= Seq(
Libraries.cats,
Libraries.scalaTest,
Libraries.derevoCore,
Libraries.derevoCats,
Libraries.derevoCirce,
)
)
lazy val root = (project in file("."))
.settings(
name := "chess"
)
.aggregate(chessLogic, core, tests)
lazy val tests = (project in file("tests"))
.configs(IntegrationTest)
.settings(commonSettings)
.settings(
name := "chess-backend-test-suite",
scalaVersion := "2.13.7",
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
Defaults.itSettings,
libraryDependencies ++= Seq(
CompilerPlugin.kindProjector,
CompilerPlugin.betterMonadicFor,
Libraries.catsLaws,
Libraries.log4catsNoOp,
Libraries.monocleLaw,
Libraries.refinedScalacheck,
Libraries.weaverCats,
Libraries.weaverDiscipline,
Libraries.weaverScalaCheck
)
)
.dependsOn(core)
lazy val core = (project in file("backend"))
.settings(
name := "chess-backend",
scalaVersion := "2.13.7",
Defaults.itSettings,
libraryDependencies ++= Seq(
CompilerPlugin.kindProjector,
CompilerPlugin.betterMonadicFor,
Libraries.cats,
Libraries.catsEffect,
Libraries.catsRetry,
Libraries.circeCore,
Libraries.circeGeneric,
Libraries.circeParser,
Libraries.circeRefined,
Libraries.cirisCore,
Libraries.cirisEnum,
Libraries.cirisRefined,
Libraries.derevoCore,
Libraries.derevoCats,
Libraries.derevoCirce,
Libraries.fs2,
Libraries.http4sDsl,
Libraries.http4sServer,
Libraries.http4sClient,
Libraries.http4sCirce,
Libraries.http4sJwtAuth,
Libraries.javaxCrypto,
Libraries.log4cats,
Libraries.logback % Runtime,
Libraries.monocleCore,
Libraries.newtype,
Libraries.redis4catsEffects,
Libraries.redis4catsLog4cats,
Libraries.refinedCore,
Libraries.refinedCats,
Libraries.skunkCore,
Libraries.skunkCirce,
Libraries.squants
)
).dependsOn(chessLogic)
addCommandAlias("runLinter", ";scalafixAll --rules OrganizeImports")