-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (47 loc) · 1.43 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
ThisBuild / organization := "com.github.skozlov"
ThisBuild / version := "0.1.0"
ThisBuild / isSnapshot := true
ThisBuild / scalaVersion := "2.13.10"
ThisBuild / scalacOptions ++= Seq(
"-encoding",
"utf8",
"-Xfatal-warnings",
"-Xlint",
"--release:17",
"-feature",
"-language:implicitConversions",
)
ThisBuild / coverageEnabled := true
ThisBuild / coverageFailOnMinimum := true
ThisBuild / coverageMinimumStmtTotal := 100
lazy val commonsLang =
(project in file("commons/lang")).settings(name := "commons-lang")
lazy val commonsTest = (project in file("commons/test")).settings(
name := "commons-test",
libraryDependencies ++= Seq("org.scalatest" %% "scalatest" % "3.2.15"),
)
lazy val arithmetic = (project in file("arithmetic"))
.settings(name := "arithmetic")
.dependsOn(commonsLang, commonsTest % Test)
lazy val algebra = (project in file("algebra"))
.settings(name := "algebra")
.dependsOn(arithmetic, commonsTest % Test)
lazy val demo = (project in file("demo"))
.settings(name := "demo")
.dependsOn(arithmetic, algebra)
lazy val root = (project in file("."))
.settings(name := "math")
.aggregate(commonsLang, commonsTest, arithmetic, algebra)
commands ++= Seq(
Command.command("build") { state =>
"scalafmtCheckAll" ::
"scalafmtSbtCheck" ::
"coverage" ::
"test" ::
"coverageReport" ::
state
},
Command.command("rebuild") { state =>
"clean" :: "build" :: state
},
)