diff options
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 31 |
1 files changed, 22 insertions, 9 deletions
@@ -1,7 +1,7 @@ val commonSettings = Seq( organization := "com.softwaremill.sttp", scalaVersion := "2.12.3", - crossScalaVersions := Seq(scalaVersion.value, "2.11.8"), + crossScalaVersions := Seq(scalaVersion.value, "2.11.11"), scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xlint"), scalafmtOnCompile := true, scalafmtVersion := "1.1.0", @@ -38,13 +38,16 @@ val scalaTest = "org.scalatest" %% "scalatest" % "3.0.3" lazy val rootProject = (project in file(".")) .settings(commonSettings: _*) .settings(publishArtifact := false, name := "sttp") - .aggregate(core, - akkaHttpHandler, - asyncHttpClientHandler, - futureAsyncHttpClientHandler, - scalazAsyncHttpClientHandler, - monixAsyncHttpClientHandler, - tests) + .aggregate( + core, + akkaHttpHandler, + asyncHttpClientHandler, + futureAsyncHttpClientHandler, + scalazAsyncHttpClientHandler, + monixAsyncHttpClientHandler, + okhttpClientHandler, + tests + ) lazy val core: Project = (project in file("core")) .settings(commonSettings: _*) @@ -102,6 +105,16 @@ lazy val monixAsyncHttpClientHandler: Project = (project in file( ) ) dependsOn asyncHttpClientHandler +lazy val okhttpClientHandler: Project = (project in file( + "okhttp-client-handler")) + .settings(commonSettings: _*) + .settings( + name := "okhttp-client-handler", + libraryDependencies ++= Seq( + "com.squareup.okhttp3" % "okhttp" % "3.8.1" + ) + ) dependsOn core + lazy val tests: Project = (project in file("tests")) .settings(commonSettings: _*) .settings( @@ -116,4 +129,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) +monixAsyncHttpClientHandler, okhttpClientHandler) |