-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
56 lines (48 loc) · 1.49 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
import xerial.sbt.Sonatype._
val scala3Version = "3.3.4"
ThisBuild / scalafmtOnCompile := true // not recommended, but just for convenience
lazy val root = project
.in(file("."))
.settings(
organization := "io.github.strymonas",
name := "strymonas",
// Use sbt-dynver for `version`
// version := "",
scalaVersion := scala3Version,
homepage := Some(
url(
"https://strymonas.github.io/"
)
),
licenses += License.MIT,
description := "Fast streams for Scala 3",
sonatypeProjectHosting := Some(GitHubHosting("strymonas", "strymonas-scala", "[email protected]")),
publishTo := sonatypePublishToBundle.value,
sonatypeCredentialHost := sonatypeCentralHost,
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint:all",
),
libraryDependencies ++= Seq(
"org.scala-lang" %% "scala3-staging" % scala3Version,
"com.novocode" % "junit-interface" % "0.11" % "test",
)
)
lazy val bench = project
.in(file("bench"))
.dependsOn(root)
.settings(
organization := "io.github.strymonas",
name := "strymonas-bench",
version := "0.1.0",
scalaVersion := scala3Version,
javaOptions ++= Seq("-Xms6g", "-Xmx6g", "-Xss4m",
"-XX:ReservedCodeCacheSize=256m",
"-XX:-TieredCompilation", "-XX:+UseNUMA"
),
libraryDependencies ++= Seq(
"org.scala-lang" %% "scala3-staging" % scala3Version
)
).enablePlugins(JmhPlugin)