-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
49 lines (40 loc) · 1.22 KB
/
build.sbt
File metadata and controls
49 lines (40 loc) · 1.22 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
import pl.project13.scala.sbt.JmhPlugin
ThisBuild / version := "0.1.7-SNAPSHOT"
ThisBuild / scalaVersion := "3.7.2"
ThisBuild / licenses := List(License.MIT)
ThisBuild / startYear := Some(2025)
lazy val scalatestSettings = Seq(
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % "test",
libraryDependencies += "org.scalatestplus" %% "scalacheck-1-18" % "3.2.19.0" % "test",
)
lazy val compilerFlags =
scalacOptions ++= Seq(
"-Yexplicit-nulls",
"-Werror",
"-Wunused:all",
)
lazy val root = (project in file("."))
.settings(
name := "arrayview",
packageSrc / publishArtifact := true,
).aggregate(
arrayview.jvm,
arrayview.js,
benchmark
)
lazy val arrayview = crossProject(JSPlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.in(file("arrayview"))
.settings(compilerFlags)
.settings(scalatestSettings *)
lazy val benchmark = project
.in(file("benchmark"))
.enablePlugins(JmhPlugin)
.settings(compilerFlags)
.settings(
name := "arrayview-benchmark",
scalaVersion := "3.7.1",
libraryDependencies += "org.openjdk.jmh" % "jmh-core" % "1.37",
libraryDependencies += "org.openjdk.jmh" % "jmh-generator-annprocess" % "1.37"
)
.dependsOn(arrayview.jvm)