forked from scala-text/scala_text
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
36 lines (23 loc) · 935 Bytes
/
build.sbt
File metadata and controls
36 lines (23 loc) · 935 Bytes
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
import NpmCliBase._
val textLintAll = taskKey[Unit]("lint text, html")
val textTestAll = taskKey[Unit]("test scala, links")
name := "textbook"
scalaVersion := "2.12.8"
enablePlugins(TutPlugin)
tutSourceDirectory := srcDir
tutTargetDirectory := compiledSrcDir
libraryDependencies ++= Seq(
"org.scala-sbt" % "sbt" % sbtVersion.value,
"org.mockito" % "mockito-core" % "2.28.2",
"org.scalacheck" %% "scalacheck" % "1.14.0",
"org.scalatest" %% "scalatest" % "3.0.7" // tutで使うので、テストライブラリだが、わざとcompileスコープ
)
GitBook.settings
TextLint.settings
LinkTest.settings
textLintAll := Def.sequential(LinkTest.textEslint, TextLint.textLint.toTask("")).value
textTestAll := Def.sequential(compile in Test, LinkTest.textLinkTest).value
aggregateProjects(
RootProject(file("src/example_projects/trait-example")),
RootProject(file("src/example_projects/trait-refactored-example"))
)