-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
97 lines (85 loc) · 2.13 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name := """scala-http-clients"""
version := "1.2.13.15"
ThisBuild / scalafmtOnCompile := true
val scalaV = "2.13.15"
lazy val dispatch =
(project in file("dispatch"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"org.dispatchhttp" %% "dispatch-core" % "2.0.0"
)
)
lazy val gigahorse =
(project in file("gigahorse"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"com.eed3si9n" %% "gigahorse-core" % "0.6.0",
"com.eed3si9n" %% "gigahorse-asynchttpclient" % "0.6.0"
)
)
lazy val http4s =
(project in file("http4s"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % "0.23.9",
"org.http4s" %% "http4s-blaze-client" % "0.23.9"
)
)
lazy val play =
(project in file("play"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-ahc-ws-standalone" % "2.1.3",
"com.typesafe.play" %% "play-ws-standalone-json" % "2.1.3"
)
)
lazy val scalaj =
(project in file("scalaj"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"org.scalaj" %% "scalaj-http" % "2.4.2"
)
)
lazy val `naive-http` =
(project in file("naive-http"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"io.shaka" %% "naive-http" % "126"
),
resolvers += ("Tim Tennant's repo" at "http://dl.bintray.com/timt/repo/")
.withAllowInsecureProtocol(true)
)
lazy val sttp =
(project in file("sttp"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"com.softwaremill.sttp.client3" %% "core" % "3.9.7"
)
)
lazy val requests =
(project in file("requests-scala"))
.settings(
scalaVersion := scalaV,
libraryDependencies ++= Seq(
"com.lihaoyi" %% "requests" % "0.9.0"
)
)
lazy val root = project
.in(file("."))
.aggregate(
dispatch,
gigahorse,
http4s,
`naive-http`,
play,
requests,
scalaj,
sttp
)