-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
65 lines (57 loc) · 1.73 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
61
62
63
64
65
lazy val commonSettings = Seq(
version := "0.1.0-SNAPSHOT",
scalaVersion := "3.3.1",
// javaOptions ++= Seq(
// "-XX:-DetectLocksInCompiledFrames",
// "-XX:+UnlockDiagnosticVMOptions",
// "-XX:+UnlockExperimentalVMOptions",
// "-XX:+UseNewCode")
) ++ enableContinuations
lazy val enableContinuations = Seq(
// forking is necessary in order to enable the access of the internal vm types below.
fork := true,
// enable access of jdk.internal.vm.{ Continuation, ContinuationScope }
javaOptions ++= Seq(
"--add-exports=java.base/jdk.internal.vm=ALL-UNNAMED"
)
)
lazy val core = project
.in(file("core"))
.settings(commonSettings)
.settings(
name := "monadic-reflection",
description := "Monadic Reflection for Scala"
)
lazy val cats = project
.in(file("cats"))
.dependsOn(core)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
("org.typelevel" % "cats-effect" % "3.1.0").cross(CrossVersion.for3Use2_13),
("org.typelevel" % "cats-core" % "2.3.0").cross(CrossVersion.for3Use2_13)
)
)
lazy val scalaz = project
.in(file("scalaz"))
.dependsOn(core)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
("org.scalaz" %% "scalaz-core" % "7.3.3").cross(CrossVersion.for3Use2_13),
("org.scalaz" %% "scalaz-effect" % "7.3.3").cross(CrossVersion.for3Use2_13),
)
)
lazy val zio = project
.in(file("zio"))
.dependsOn(core)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
("dev.zio" % "zio" % "1.0.7").cross(CrossVersion.for3Use2_13),
("dev.zio" %% "zio-streams" % "1.0.7").cross(CrossVersion.for3Use2_13)
)
)
lazy val root = project
.in(file("."))
.aggregate(core, cats, zio)