From 6b620da09b9f05699c1cf6080de229e63de47942 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 7 Jan 2018 21:51:22 +0100 Subject: Add initial code and project files. --- build.sbt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 build.sbt (limited to 'build.sbt') 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"), + ) -- cgit v1.2.3