-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
46 lines (42 loc) · 1.32 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
ThisBuild / organization := "playground"
ThisBuild / scalaVersion := "2.13.10"
lazy val `scala-playground` =
project
.in(file("."))
.settings(name := "scala-playground")
.settings(commonSettings: _*)
.settings(dependencies: _*)
lazy val commonSettings = {
import Dependencies._
Seq(
addCompilerPlugin(com.olegpy.`better-monadic-for`),
addCompilerPlugin(org.augustjune.`context-applied`),
addCompilerPlugin(org.typelevel.`kind-projector`),
update / evictionWarningOptions := EvictionWarningOptions.empty,
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 = {
import Dependencies._
Seq(
libraryDependencies ++= Seq(
org.typelevel.catsCore,
io.scalaland.chimney,
io.scalaland.chimneyCats,
),
libraryDependencies ++= Seq(
com.github.alexarchambault.`scalacheck-shapeless_1.14`,
org.scalacheck.scalacheck,
org.scalatest.scalatest,
org.scalatestplus.`scalacheck-1-14`,
org.typelevel.`discipline-scalatest`,
).map(_ % Test),
)
}