-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
48 lines (43 loc) · 1.11 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
48
lazy val commonSettings = Seq(
version := "1.0",
organization := "com.kokodayo",
startYear := Some(2019),
scalaVersion := "2.12.6",
scalacOptions := Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-value-discard"
// 警告をエラーにする(お好みに応じて)
, "-Xfatal-warnings"
),
scalacOptions in (Compile, doc) := Seq("-diagrams") // docにグラフを追加する
)
lazy val testSettings = libraryDependencies ++= {
Seq(
"org.scalatest" % "scalatest_2.12" % "3.0.5" % "test"
)
}
lazy val coreModel = Project("core-model", file("core-model"))
.settings(commonSettings)
.settings(testSettings)
lazy val util = project.in(file("util"))
.settings(commonSettings)
.settings(testSettings)
.settings(
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
)
lazy val dosukebe = (project in file("."))
.settings(commonSettings)
.enablePlugins(ScalaUnidocPlugin)
.aggregate(
coreModel,
util
)