-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
52 lines (47 loc) · 1.38 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
49
50
51
52
ThisBuild / organization := "com.sndyuk"
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / version := "0.1.2"
lazy val commonSettings = Seq(
scalaVersion := "2.12.10",
EclipseKeys.withSource := true,
scalacOptions ++= Seq(
"-Xfatal-warnings",
"-deprecation",
"-Xlint",
"-opt:unreachable-code,simplify-jumps,compact-locals,redundant-casts,box-unbox,l:inline",
"-opt-inline-from:jp.sndyuk.shogi.**",
)
)
lazy val root = (project in file("."))
.aggregate(
template,
core
)
lazy val template = (project in file("src/template"))
.settings(
commonSettings,
name := "bunsan-shogi-template"
)
lazy val core = (project in file("src/core"))
.settings(
commonSettings,
name := "bunsan-shogi-core",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1",
"com.typesafe" % "config" % "1.3.3",
),
)
.dependsOn(template)
lazy val sample = (project in file("src/sample"))
.settings(
commonSettings,
name := "bunsan-shogi-sample",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.scala-lang.modules" %% "scala-swing" % "2.0.3",
)
)
.dependsOn(core)