aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
blob: 8809973e8f0f84608b18e1d479d83e36b1015bbb (plain)
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
name := "fibers"
mainClass in Compile := None

inThisBuild(Seq(
  organization := "eu.mulk",

  run / fork := true,
  cancelable := true,

  scalacOptions ++= Seq(
    "-deprecation",
  ),

  licenses += ("AGPL-V3", url("https://www.gnu.org/licenses/agpl-3.0.html"))
))

lazy val core = (project in file("core"))
  .settings(
    name := "fibers-core",

    scalaSource in Compile := baseDirectory.value / "lib",
    scalaSource in Test := baseDirectory.value / "t",

    // 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-reactive" % "2.3.3",
    ),

    // Minitest
    libraryDependencies ++= Seq(
      "io.monix" %% "minitest"      % "2.2.1" % "test",
      "io.monix" %% "minitest-laws" % "2.2.1" % "test",
    ),
    testFrameworks += new TestFramework("minitest.runner.Framework"),
  )