-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
46 lines (42 loc) · 2.18 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
val CatsVersion = "2.6.1"
val CatsEffectVersion = "3.2.7"
val MacroParadiseVersion = "2.1.1"
val ScalaCheckVersion = "1.15.4"
val KindProjectorVersion = "0.13.2"
val BetterMonadicForVersion = "0.3.1"
val GitHub4sVersion = "0.29.1"
val ScalaTestVersion = "3.2.9"
val ScalaTestPlusVersion = "3.2.9.0"
lazy val root = (project in file("."))
.settings(
scalaVersion := "2.12.14",
crossScalaVersions := Seq("2.12.14", "2.13.6", "3.0.2"),
Test / test := {
val _ = (Test / g8Test).toTask("").value
},
scriptedLaunchOpts ++= List("-Xms1024m", "-Xmx1024m", "-XX:ReservedCodeCacheSize=128m", "-XX:MaxPermSize=256m", "-Xss2m", "-Dfile.encoding=UTF-8"),
resolvers += Resolver.url("typesafe", url("https://repo.typesafe.com/typesafe/ivy-releases/"))(Resolver.ivyStylePatterns),
Global / onChangedBuildSource := ReloadOnSourceChanges,
// Adding dependencies in order to force Scala Steward to help us
// update the g8 template as well
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % ScalaTestVersion % Test,
"org.scalatestplus" %%% "scalacheck-1-15" % ScalaTestPlusVersion % Test,
"org.scalacheck" %%% "scalacheck" % ScalaCheckVersion % Test,
"org.typelevel" %%% "cats-core" % CatsVersion % Test,
"org.typelevel" %%% "cats-effect" % CatsEffectVersion % Test,
"org.typelevel" %%% "cats-effect-laws" % CatsEffectVersion % Test,
"org.typelevel" %%% "cats-laws" % CatsVersion % Test,
"com.47deg" %%% "github4s" % GitHub4sVersion % Test,
),
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) =>
Seq(
compilerPlugin(("org.typelevel" % "kind-projector" % KindProjectorVersion).cross(CrossVersion.full) % Test),
compilerPlugin(("org.scalamacros" % "paradise" % MacroParadiseVersion).cross(CrossVersion.patch) % Test),
compilerPlugin("com.olegpy" %% "better-monadic-for" % BetterMonadicForVersion % Test),
)
case _ =>
Seq.empty
}),
)