-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathbuild.sbt
44 lines (28 loc) · 1.13 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
import NpmCliBase._
val textLintAll = taskKey[Unit]("lint text, html")
val textTestAll = taskKey[Unit]("test scala, links")
ThisBuild / onChangedBuildSource := ReloadOnSourceChanges
name := "textbook"
scalaVersion := "2.13.16"
crossScalaVersions += "3.6.3"
enablePlugins(MdocPlugin)
mdocIn := srcDir
mdocOut := compiledSrcDir
cleanFiles += compiledSrcDir
libraryDependencies ++= Seq(
// TODO sbtがScala 2.13対応したら再び有効化
// "org.scala-sbt" % "sbt" % sbtVersion.value,
"org.mockito" % "mockito-core" % "5.15.2",
"org.scalacheck" %% "scalacheck" % "1.18.1",
"org.scalatest" %% "scalatest-flatspec" % "3.2.19", // mdocで使うので、テストライブラリだが、わざとcompileスコープ
"org.scalatest" %% "scalatest-diagrams" % "3.2.19"
)
Honkit.settings
TextLint.settings
LinkTest.settings
textLintAll := Def.sequential(LinkTest.textEslint, TextLint.textLint.toTask("")).value
textTestAll := Def.sequential(Test / compile, LinkTest.textLinkTest).value
aggregateProjects(
RootProject(file("src/example_projects/trait-example")),
RootProject(file("src/example_projects/trait-refactored-example"))
)