-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
38 lines (32 loc) · 949 Bytes
/
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
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / scalaVersion := "3.3.0"
ThisBuild / organization := "works.scala"
ThisBuild / scalacOptions ++= Seq()
ThisBuild / testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
lazy val root = project
.in(file("."))
.aggregate(sms)
lazy val sms = project
.in(file("sms"))
.settings(
name := "simple-messaging-service",
libraryDependencies ++= Dependencies.sms,
fork := true
)
lazy val smsTest = project
.in(file("sms-test"))
.settings(
name := "sms-tests",
libraryDependencies ++= Dependencies.smsTests,
fork := true
)
.dependsOn(sms)
lazy val docs = project
.in(file(".site-docs"))
.dependsOn(sms)
.settings(
mdocOut := file("./website/docs")
)
.enablePlugins(MdocPlugin)
addCommandAlias("fmt", "all root/scalafmtSbt root/scalafmtAll")
addCommandAlias("fmtCheck", "all root/scalafmtSbtCheck root/scalafmtCheckAll")