-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (44 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
import Dependencies._
ThisBuild / organization := "com.xonal"
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / watchTriggeredMessage := Watch.clearScreenOnTrigger
lazy val `playground` =
project
.in(file("."))
.settings(name := "playground")
.settings(commonSettings)
.settings(dependencies)
lazy val commonSettings =
compilerPlugins ++ commonScalacOptions ++ Seq(
update / evictionWarningOptions := EvictionWarningOptions.empty
)
lazy val compilerPlugins = Seq(
addCompilerPlugin(com.olegpy.`better-monadic-for`),
addCompilerPlugin(org.augustjune.`context-applied`),
addCompilerPlugin(org.typelevel.`kind-projector`),
)
lazy val commonScalacOptions = Seq(
Compile / console / scalacOptions := {
(Compile / console / scalacOptions)
.value
.filterNot(_.contains("wartremover"))
.filterNot(Scalac.Lint.toSet)
.filterNot(Scalac.FatalWarnings.toSet) :+ "-Wconf:any:silent"
},
Test / console / scalacOptions :=
(Compile / console / scalacOptions).value,
)
lazy val dependencies = Seq(
libraryDependencies ++= Seq(
// main dependencies
),
libraryDependencies ++= Seq(
com.github.alexarchambault.`scalacheck-shapeless_1.15`,
org.scalacheck.scalacheck,
org.scalatest.scalatest,
org.scalatestplus.`scalacheck-1-16`,
org.typelevel.`discipline-scalatest`,
).map(_ % Test),
)
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.14.1" % "test"
Test/ testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-s", "5")