-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
57 lines (51 loc) · 1.63 KB
/
build.sbt
File metadata and controls
57 lines (51 loc) · 1.63 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
lazy val commonSettings = Seq(
organization := "io.scalac",
scalaVersion := "3.2.1",
wartremoverErrors ++= Warts.unsafe.diff(Seq(Wart.Any)),
coverageFailOnMinimum := true,
coverageMinimumStmtTotal := 100,
coverageMinimumBranchTotal := 100
)
val catsEffect = "org.typelevel" %% "cats-effect" % "3.4.1"
val catsParse = "org.typelevel" %% "cats-parse" % "0.3.8"
val munit = "org.scalameta" %% "munit" % "0.7.29" % Test
val munitScalaCheck = "org.scalameta" %% "munit-scalacheck" % "0.7.29" % Test
lazy val api =
project
.in(file("api"))
.settings(commonSettings)
.settings(
name := "minesweeper-api",
libraryDependencies ++= Seq(munit, munitScalaCheck)
)
lazy val squared =
project
.in(file("squared"))
.settings(commonSettings)
.dependsOn(api % "test->test;compile->compile")
.settings(
name := "minesweeper-squared",
libraryDependencies += catsParse
)
lazy val cli =
project
.in(file("cli"))
.settings(commonSettings)
.dependsOn(api % "test->test;compile->compile")
.settings(
name := "minesweeper-cli",
libraryDependencies ++= Seq(catsEffect, catsParse)
)
lazy val `cli-squared` =
project
.in(file("cli-squared"))
.settings(commonSettings)
.dependsOn(cli, squared)
.settings(
name := "minesweeper-cli-squared"
)
addCommandAlias("checkFormat", "scalafmtSbtCheck; scalafmtCheckAll")
addCommandAlias("lint", "compile")
addCommandAlias("testCoverage", "coverage; test; squared/coverageReport")
addCommandAlias("mutationTest", "project squared; stryker")
addCommandAlias("verify", "checkFormat; lint; testCoverage; mutationTest")