-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathscalaHttp4s.scala
More file actions
68 lines (59 loc) · 2.96 KB
/
Copy pathscalaHttp4s.scala
File metadata and controls
68 lines (59 loc) · 2.96 KB
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
package dev.guardrail.sbt.modules
import dev.guardrail.sbt.Build._
import sbt._
import sbt.Keys._
object scalaHttp4s {
val catsVersion = "2.10.0"
val circeVersion = "0.14.6"
val javaxAnnotationVersion = "1.3.2"
val jaxbApiVersion = "2.3.1"
val scalatestVersion = "3.2.20"
val dependenciesV0_22 = {
val catsEffectVersion = "2.5.4"
val http4sVersion = "0.22.7"
val refinedVersion = "0.11.4"
Seq(
"javax.annotation" % "javax.annotation-api" % javaxAnnotationVersion, // for jdk11
"javax.xml.bind" % "jaxb-api" % jaxbApiVersion, // for jdk11
) ++ Seq(
"eu.timepit" %% "refined" % refinedVersion,
"eu.timepit" %% "refined-cats" % refinedVersion,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-refined" % circeVersion,
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion
).map(_.cross(CrossVersion.for3Use2_13))
}
val dependencies = {
val catsEffectVersion = "3.5.3"
val http4sVersion = "0.23.36"
val http4sBlazeVersion = "0.23.15"
val refinedVersion = "0.11.4"
Seq(
"javax.annotation" % "javax.annotation-api" % javaxAnnotationVersion, // for jdk11
"javax.xml.bind" % "jaxb-api" % jaxbApiVersion, // for jdk11
) ++ Seq(
"eu.timepit" %% "refined" % refinedVersion,
"eu.timepit" %% "refined-cats" % refinedVersion,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-refined" % circeVersion,
"org.http4s" %% "http4s-blaze-client" % http4sBlazeVersion,
"org.http4s" %% "http4s-blaze-server" % http4sBlazeVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion
).map(_.cross(CrossVersion.for3Use2_13))
}
val project = commonModule("scala-http4s")
val sampleV0_22 = buildSampleProject("http4s-v0_22", dependenciesV0_22)
val sample = buildSampleProject("http4s", dependencies)
}