-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (44 loc) · 1.35 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
val scala3Version = "3.4.0-RC1"
lazy val commonSettings = Seq(
javaOptions ++= Seq(
// "-XX:-DetectLocksInCompiledFrames",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+UnlockExperimentalVMOptions",
"-XX:+UseNewCode"
)
) ++ enableContinuations
lazy val core = project
.in(file("core"))
.settings(commonSettings)
.settings(
name := "lynx",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test
)
lazy val catsInterop = project
.in(file("cats-interop"))
.settings(commonSettings)
.settings(
name := "lynx-cats-interop",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.6.1",
"org.typelevel" %% "cats-effect" % "3.2.9",
"org.typelevel" %% "munit-cats-effect" % "2.0.0-M4" % Test
)
)
.dependsOn(core)
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",
"--add-opens=java.base/java.lang=ALL-UNNAMED"
)
)
lazy val root = project
.in(file("."))
.aggregate(core, catsInterop)