aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-21 16:40:07 +0200
committeradamw <adam@warski.org>2017-07-21 16:40:07 +0200
commite5ebd242a4cb982af6b01ec1976ecfc91398189f (patch)
tree3ca28ad0c4409d05bf50c3059e783a08d0947153 /build.sbt
parent1e8b6064c3855a85c340165fad7feefaf656e074 (diff)
downloadsttp-e5ebd242a4cb982af6b01ec1976ecfc91398189f.tar.gz
sttp-e5ebd242a4cb982af6b01ec1976ecfc91398189f.tar.bz2
sttp-e5ebd242a4cb982af6b01ec1976ecfc91398189f.zip
Scalaz version of the async http client handler, wrapping responses in a Task
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt23
1 files changed, 20 insertions, 3 deletions
diff --git a/build.sbt b/build.sbt
index 6817ad3..063e7fe 100644
--- a/build.sbt
+++ b/build.sbt
@@ -66,7 +66,7 @@ lazy val akkaHttpHandler: Project = (project in file("akka-http-handler"))
libraryDependencies ++= Seq(
akkaHttp
)
- ) dependsOn (core)
+ ) dependsOn core
lazy val asyncHttpClientHandler: Project = (project in file(
"async-http-client-handler"))
@@ -76,7 +76,24 @@ lazy val asyncHttpClientHandler: Project = (project in file(
libraryDependencies ++= Seq(
"org.asynchttpclient" % "async-http-client" % "2.0.33"
)
- ) dependsOn (core)
+ ) dependsOn core
+
+lazy val futureAsyncHttpClientHandler: Project = (project in file(
+ "async-http-client-handler/future"))
+ .settings(commonSettings: _*)
+ .settings(
+ name := "async-http-client-handler-future"
+ ) dependsOn asyncHttpClientHandler
+
+lazy val scalazAsyncHttpClientHandler: Project = (project in file(
+ "async-http-client-handler/scalaz"))
+ .settings(commonSettings: _*)
+ .settings(
+ name := "async-http-client-handler-scalaz",
+ libraryDependencies ++= Seq(
+ "org.scalaz" %% "scalaz-concurrent" % "7.2.14"
+ )
+ ) dependsOn asyncHttpClientHandler
lazy val tests: Project = (project in file("tests"))
.settings(commonSettings: _*)
@@ -91,4 +108,4 @@ lazy val tests: Project = (project in file("tests"))
"ch.qos.logback" % "logback-classic" % "1.2.3"
).map(_ % "test"),
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % "test"
- ) dependsOn (core, akkaHttpHandler, asyncHttpClientHandler)
+ ) dependsOn (core, akkaHttpHandler, futureAsyncHttpClientHandler, scalazAsyncHttpClientHandler)