-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
68 lines (63 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
lazy val scala212 = "2.12.10"
lazy val scala213 = "2.13.2"
lazy val supportedScalaVersions = List(scala213, scala212)
inThisBuild(
List(
scalaVersion := scala213,
organization := "com.compstak",
homepage := Some(url("https://github.com/compstak/nomad-http4s")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"LukaJCB",
"Luka Jacobowitz",
url("https://github.com/LukaJCB")
),
Developer(
"goedelsoup",
"Cory Parent",
url("https://github.com/goedelsoup")
)
)
)
)
val CirceVersion = "0.13.0"
val Http4sVersion = "0.21.12"
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-language:higherKinds",
"-language:postfixOps",
"-feature",
"-Xfatal-warnings"
)
addCommandAlias("fmtAll", ";scalafmt; test:scalafmt; scalafmtSbt")
addCommandAlias("fmtCheck", ";scalafmtCheck; test:scalafmtCheck; scalafmtSbtCheck")
addCommandAlias("validate", "fmtCheck; test")
lazy val core = (project in file("."))
.configs(IntegrationTest)
.settings(
Defaults.itSettings,
name := "nomad-http4s",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % CirceVersion,
"org.http4s" %% "http4s-client" % Http4sVersion,
"org.http4s" %% "http4s-circe" % Http4sVersion,
"org.http4s" %% "http4s-dsl" % Http4sVersion,
"org.scalatest" %% "scalatest" % "3.1.2" % Test,
"com.codecommit" %% "cats-effect-testing-scalatest" % "0.4.0" % Test,
"org.http4s" %% "http4s-async-http-client" % Http4sVersion % Test
),
addCompilerPlugin(("org.typelevel" %% "kind-projector" % "0.11.1").cross(CrossVersion.full)),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
testFrameworks += new TestFramework("com.github.agourlay.cornichon.framework.CornichonFramework"),
scalafmtOnCompile := true,
initialCommands in console := """
|import cats.implicits._
|import nomad._
""".stripMargin
)