-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
61 lines (51 loc) · 2.01 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
lazy val scala213 = "2.13.0"
lazy val scala212 = "2.12.8"
lazy val scala211 = "2.11.12"
lazy val supportedScalaVersions = List(scala211, scala212, scala213)
ThisBuild / scalaVersion := scala213
inThisBuild(List(
organization := "com.ryanstull",
homepage := Some(url("https://github.com/ryanstull/ScalaNullSafe")),
licenses := List("MIT" -> url("https://opensource.org/licenses/MIT")),
developers := List(
Developer(
"rstull123135",
"Ryan Stull",
"rstull1250@gmail.com",
url("http://ryanstull.com")
)
)
))
lazy val root = (project in file("."))
.settings(
name := "ScalaNullSafe",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scalactic" %% "scalactic" % "3.0.8" % "test",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
)
)
addCommandAlias("bench","benchmarks/jmh:run")
addCommandAlias("quick-bench","benchmarks/jmh:run -wi 3 -i 2")
val monocleVersion = "1.6.0-RC1"
lazy val benchmarks = (project in file("benchmarks"))
.settings(
name := "benchmarks",
crossScalaVersions := supportedScalaVersions,
sourceDirectory in Jmh := (sourceDirectory in Test).value,
classDirectory in Jmh := (classDirectory in Test).value,
dependencyClasspath in Jmh := (dependencyClasspath in Test).value,
compile in Jmh := (compile in Jmh).dependsOn(compile in Test).value,
run in Jmh := (run in Jmh).dependsOn(Keys.compile in Jmh).evaluated,
skip in publish := true,
libraryDependencies ++= Seq(
"com.github.julien-truffaut" %% "monocle-core" % monocleVersion % "test",
"com.github.julien-truffaut" %% "monocle-macro" % monocleVersion % "test",
"com.thoughtworks.dsl" %% "keywords-nullsafe" % "1.5.3"
)
,
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-bangnotation" % "1.5.3"),
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-reseteverywhere" % "1.5.3")
).dependsOn(root % "test->test").enablePlugins(JmhPlugin)
updateOptions := updateOptions.value.withGigahorse(false)