aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2018-01-07 21:51:22 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2018-01-07 21:51:22 +0100
commit6b620da09b9f05699c1cf6080de229e63de47942 (patch)
treed3061b37b98c228f0c2be18c171f9d911b0dca7a /build.sbt
Add initial code and project files.
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt49
1 files changed, 49 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
new file mode 100644
index 0000000..43fd17a
--- /dev/null
+++ b/build.sbt
@@ -0,0 +1,49 @@
+name := "fibers"
+mainClass in Compile := None
+
+inThisBuild(Seq(
+ scalaOrganization := "org.typelevel",
+ scalaVersion := "2.12.4-bin-typelevel-4",
+
+ version := "0.1.0-SNAPSHOT",
+ organization := "eu.mulk",
+
+ run / fork := true,
+ cancelable := true,
+
+ scalacOptions ++= Seq(
+ "-deprecation",
+ ),
+))
+
+lazy val core = (project in file("core"))
+ .settings(
+ name := "fibers-core",
+
+ scalaSource in Compile := baseDirectory.value / "lib",
+ scalaSource in Test := baseDirectory.value / "t",
+
+ scalacOptions += "-Yliteral-types",
+
+ scalacOptions ++= Seq(
+ "-Ypartial-unification",
+ ),
+
+ // Continuations
+ addCompilerPlugin("org.scala-lang.plugins" % "scala-continuations-plugin_2.12.2" % "1.0.3"),
+ libraryDependencies += "org.scala-lang.plugins" %% "scala-continuations-library" % "1.0.3",
+ scalacOptions += "-P:continuations:enable",
+
+ // Monix
+ libraryDependencies ++= Seq(
+ "io.monix" %% "monix" % "2.3.0",
+ "io.monix" %% "monix-cats" % "2.3.0",
+ ),
+
+ // Minitest
+ libraryDependencies ++= Seq(
+ "io.monix" %% "minitest" % "2.0.0" % "test",
+ "io.monix" %% "minitest-laws" % "2.0.0" % "test",
+ ),
+ testFrameworks += new TestFramework("minitest.runner.Framework"),
+ )