-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
62 lines (59 loc) · 1.85 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
import scala.scalanative.build.*
ThisBuild / scalaVersion := "3.5.1"
ThisBuild / scalacOptions ++= Seq("-language:strictEquality", "-Yexplicit-nulls", "-Wsafe-init")
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
val field = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.jvmSettings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.12.0",
"org.scalameta" %%% "munit" % "1.0.2" % Test,
"org.scalacheck" %%% "scalacheck" % "1.18.1" % Test,
"org.scalameta" %%% "munit-scalacheck" % "1.0.0" % Test,
),
)
.jsSettings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.12.0",
"org.scalameta" %%% "munit" % "1.0.2" % Test,
"org.scalacheck" %%% "scalacheck" % "1.18.1" % Test,
"org.scalameta" %%% "munit-scalacheck" % "1.0.0" % Test,
),
)
.nativeSettings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.11.0",
),
)
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.5.4",
"co.fs2" %%% "fs2-core" % "3.11.0",
"com.monovore" %%% "decline" % "2.4.1",
"com.monovore" %%% "decline-effect" % "2.4.1",
),
)
.jvmSettings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "kittens" % "3.4.0",
)
)
.jsSettings(
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"org.typelevel" %%% "kittens" % "3.4.0",
)
)
.nativeSettings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "kittens" % "3.3.0",
),
nativeConfig ~= {
_.withLTO(LTO.thin)
.withMode(Mode.releaseFull)
},
)