-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
56 lines (48 loc) · 1.95 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
//name := "cwf"
//libraryDependencies ++=
lazy val dep = Seq(
"org.scalaz" % "scalaz-core_2.12" % "7.2.15",
"org.scalaz" % "scalaz-effect_2.12" % "7.2.15",
"org.scala-lang.modules" %% "scala-swing" % "2.0.0",
"de.sciss" %% "swingplus" % "0.2.4",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test",
"de.tuda.stg" %% "rescala" % "0.19.0",
"io.monadless" %% "monadless-core" % "0.0.13"
)
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck,
"-minSize","10","-maxSize", "20", "-minSuccessfulTests", "200", "-maxDiscardRatio", "30", "-workers", "1", "-verbosity", "2")
lazy val commonSettings = Seq(
version := "0.1.1-SNAPSHOT",
scalaVersion := "2.12.3",
resolvers += Resolver.bintrayRepo("rmgk", "maven"),
resolvers += Resolver.bintrayRepo("pweisenburger", "maven"),
resolvers += Resolver.sonatypeRepo("releases"),
libraryDependencies ++= dep,
libraryDependencies ++= (scalaBinaryVersion.value match {
case "2.10" =>
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full) :: Nil
case _ =>
Nil
}),
scalacOptions ++= Seq("-unchecked","-deprecation","-feature","-J-Xss256m","-J-Xmx4096m"
//, "-Xprint:tailcall"
// , "-Ymacro-debug-lite", "-Yshow-trees-compact"
),
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck,
"-minSize","10","-maxSize", "20", "-minSuccessfulTests", "200", "-workers", "1", "-verbosity", "2"),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.4")
,publishTo := Some(Resolver.file("cwf",file("./published"))(Patterns(true, Resolver.mavenStyleBasePattern)))
)
lazy val root = (project in file(".")).settings(
name := "contextworkflow"
,commonSettings
).aggregate(cw,examples)
lazy val cw = (project in file("cworkflow")).settings(
name := "cwf",
commonSettings
)
lazy val examples = (project in file("examples")).settings(
name := "examples",
commonSettings
).dependsOn(cw)