-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
60 lines (51 loc) · 1.64 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
53
54
55
56
57
58
59
60
val ScalaVer = "2.12.1"
val ThisVersion = "0.1.0"
val Cats = "0.8.1"
val Shapeless = "2.3.2"
val ScalaCheck = "1.13.4"
val KindProjector = "0.9.3"
val ScalaSwing = "2.0.0-M2"
val ScalacheckMinTests = "10000"
lazy val commonSettings = Seq(
scalaVersion := ScalaVer
, libraryDependencies ++= Seq(
"org.typelevel" %% "cats" % Cats
, "com.chuusai" %% "shapeless" % Shapeless
, "org.scalacheck" %% "scalacheck" % ScalaCheck % "test"
)
, addCompilerPlugin("org.spire-math" %% "kind-projector" % KindProjector)
, scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:experimental.macros",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Xfuture")
, testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-minSuccessfulTests", ScalacheckMinTests, "-workers", "10", "-verbosity", "1")
)
lazy val root = (project in file("."))
.aggregate(core, lookupframe)
lazy val core = (project in file("core"))
.settings(commonSettings)
.settings(
name := "free-acp"
, version := "0.1.0"
, initialCommands := "import freeacp._; import Main._"
)
lazy val lookupframe = (project in file("lookupframe"))
.dependsOn(core)
.settings(commonSettings)
.settings(
libraryDependencies += "org.scala-lang.modules" %% "scala-swing" % ScalaSwing
)
lazy val twoButtons = (project in file("two-buttons"))
.dependsOn(core)
.settings(commonSettings)
.settings(
libraryDependencies += "org.scala-lang.modules" %% "scala-swing" % ScalaSwing
)