forked from ioleo/zio-by-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (32 loc) · 895 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
39
40
import sbt.Resolver
import scala.util.Try
import Build._
organization in ThisBuild := "ioleo"
version in ThisBuild := "0.1.0-SNAPSHOT"
lazy val `zio-by-example` =
project
.in(file("."))
.aggregate(blog, helloworld, tictactoe)
lazy val blog =
project
.in(file("blog"))
.settings(stdSettings("blog"))
.settings(mdocSettings)
.enablePlugins(MdocPlugin)
lazy val helloworld =
project
.in(file("helloworld"))
.settings(stdSettings("helloworld"))
lazy val tictactoe =
project
.in(file("tictactoe"))
.settings(stdSettings("tictactoe"))
.settings(libraryDependencies ++= tictactoeDeps)
onLoad in Global := (onLoad in Global).value andThen { state: State =>
val escapedMotd =
motd
.replaceAll("(\r\n)|\r|\n", "\\\\r\\\\n")
.replaceAll("\"", "\\\\\"")
val showMotd = s"""eval println("$escapedMotd")"""
showMotd :: state
}