From b217185d8bd4297aef1e91b34f295620a1832e0b Mon Sep 17 00:00:00 2001 From: Omar Alejandro Mainegra Sarduy Date: Fri, 4 Aug 2017 18:14:28 -0400 Subject: Add new Monix handler --- build.sbt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index 332e80b..8e105a0 100644 --- a/build.sbt +++ b/build.sbt @@ -33,6 +33,9 @@ val commonSettings = Seq( val akkaHttpVersion = "10.0.9" val akkaHttp = "com.typesafe.akka" %% "akka-http" % akkaHttpVersion +val monixVersion = "2.3.0" +val monix = "io.monix" %% "monix" % monixVersion + val scalaTest = "org.scalatest" %% "scalatest" % "3.0.3" lazy val rootProject = (project in file(".")) @@ -47,6 +50,7 @@ lazy val rootProject = (project in file(".")) monixAsyncHttpClientHandler, catsAsyncHttpClientHandler, okhttpClientHandler, + okhttpMonixClientHandler, tests ) @@ -101,9 +105,7 @@ lazy val monixAsyncHttpClientHandler: Project = (project in file( .settings(commonSettings: _*) .settings( name := "async-http-client-handler-monix", - libraryDependencies ++= Seq( - "io.monix" %% "monix" % "2.3.0" - ) + libraryDependencies ++= Seq(monix) ) dependsOn asyncHttpClientHandler lazy val catsAsyncHttpClientHandler: Project = (project in file( @@ -126,6 +128,14 @@ lazy val okhttpClientHandler: Project = (project in file( ) ) dependsOn core +lazy val okhttpMonixClientHandler: Project = (project in file( + "okhttp-client-handler/monix")) + .settings(commonSettings: _*) + .settings( + name := "okhttp-client-handler-monix", + libraryDependencies ++= Seq(monix) + ) dependsOn okhttpClientHandler + lazy val tests: Project = (project in file("tests")) .settings(commonSettings: _*) .settings( @@ -140,4 +150,4 @@ lazy val tests: Project = (project in file("tests")) ).map(_ % "test"), libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % "test" ) dependsOn (core, akkaHttpHandler, futureAsyncHttpClientHandler, scalazAsyncHttpClientHandler, -monixAsyncHttpClientHandler, catsAsyncHttpClientHandler, okhttpClientHandler) +monixAsyncHttpClientHandler, catsAsyncHttpClientHandler, okhttpClientHandler, okhttpMonixClientHandler) -- cgit v1.2.3