Merge pull request #102 from eed3si9n/wip/gigahorse

add Gigahorse
This commit is contained in:
eugene yokota 2017-05-25 14:16:56 -04:00 committed by GitHub
commit 4d9013a3a3
3 changed files with 9 additions and 0 deletions

View File

@ -60,6 +60,7 @@ lazy val lm = (project in file("librarymanagement"))
jsch,
scalaReflect.value,
launcherInterface,
gigahorseOkhttp,
sjsonnewScalaJson % Optional),
libraryDependencies ++= scalaXml.value,
resourceGenerators in Compile += Def

View File

@ -0,0 +1,7 @@
package sbt.librarymanagement
import gigahorse._, support.okhttp.Gigahorse
object Http {
lazy val http: HttpClient = Gigahorse.http(Gigahorse.config)
}

View File

@ -57,6 +57,7 @@ object Dependencies {
val scalaXml = scala211Module("scala-xml", "1.0.5")
val sjsonnewVersion = "0.7.0"
val sjsonnewScalaJson = "com.eed3si9n" %% "sjson-new-scalajson" % sjsonnewVersion
val gigahorseOkhttp = "com.eed3si9n" %% "gigahorse-okhttp" % "0.3.0"
private def scala211Module(name: String, moduleVersion: String) =
Def.setting {