-
Notifications
You must be signed in to change notification settings - Fork 44
/
build.sbt
47 lines (43 loc) · 1.25 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
import scala.sys.process._
lazy val sharedSettings = Seq(
scalaVersion := "2.12.12"
)
lazy val root = project
.in(file("."))
.aggregate(docs2x, docs3x)
.settings(sharedSettings)
.settings(
Global / onChangedBuildSource := ReloadOnSourceChanges
)
lazy val docs2x = project // new documentation project
.in(file(".mdoc-projects/2x")) // important: it must not be docs/
.enablePlugins(MdocPlugin)
.settings(sharedSettings)
.settings(
scalaVersion := "2.12.13",
libraryDependencies ++= Seq(
"io.monix" %% "monix" % "2.3.3",
"io.monix" %% "monix-scalaz-72" % "2.3.3",
"io.monix" %% "monix-cats" % "2.3.3",
"org.slf4j" % "slf4j-api" % "1.7.30",
),
mdocIn := file("_docs/2x"),
mdocOut := file("docs/2x"),
)
lazy val docs3x = project // new documentation project
.in(file(".mdoc-projects/3x")) // important: it must not be docs/
.enablePlugins(MdocPlugin)
.settings(sharedSettings)
.settings(
scalaVersion := "2.13.5",
libraryDependencies ++= Seq(
"io.monix" %% "monix" % "3.4.0",
"org.slf4j" % "slf4j-api" % "1.7.30",
),
mdocIn := file("_docs/3x"),
mdocOut := file("docs/3x"),
mdoc := {
mdoc.evaluated
"ln -sfn ./3x docs/current" !
}
)