-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
54 lines (50 loc) · 1.64 KB
/
build.sbt
File metadata and controls
54 lines (50 loc) · 1.64 KB
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
import scala.scalanative.build.*
ThisBuild / scalaVersion := "3.7.4"
ThisBuild / scalacOptions ++= Seq("-language:strictEquality", "-Yexplicit-nulls", "-Wsafe-init")
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
val field = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.13.0",
"org.scalameta" %%% "munit" % "1.2.1" % Test,
"org.scalacheck" %%% "scalacheck" % "1.19.0" % Test,
"org.scalameta" %%% "munit-scalacheck" % "1.2.0" % Test,
),
)
val bench = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.dependsOn(field)
.settings(
Compile / mainClass := Some("points.bench.Bench"),
Compile / run / fork := true,
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-effect" % "3.6.3",
"co.fs2" %%% "fs2-core" % "3.12.2",
"org.typelevel" %%% "kittens" % "3.5.0",
"com.monovore" %%% "decline" % "2.5.0",
"com.monovore" %%% "decline-effect" % "2.5.0",
),
)
.nativeSettings(
nativeConfig ~= {
_.withLTO(LTO.thin)
.withMode(Mode.releaseFull)
},
)
val verify = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.dependsOn(field)
.settings(
Compile / mainClass := Some("points.verify.Verify"),
Compile / run / fork := true,
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-effect" % "3.6.3",
"co.fs2" %%% "fs2-core" % "3.12.2",
"co.fs2" %%% "fs2-io" % "3.12.2",
),
)
.nativeSettings(
nativeConfig ~= {
_.withLTO(LTO.thin)
.withMode(Mode.releaseFull)
},
)