mirror of https://github.com/sbt/sbt.git
switch dispatch to dispatch.classic to avoid collisions with plugins which use newer versions of dispatch (0.9+)
This commit is contained in:
parent
9d4b604513
commit
51728d1ad1
|
|
@ -43,8 +43,8 @@ object Release extends Build
|
|||
def deployLauncher(launcher: ScopedTask[File]) =
|
||||
(launcher, launcherRemotePath, credentials, remoteBase, streams) map { (launchJar, remotePath, creds, base, s) =>
|
||||
val (uname, pwd) = getCredentials(creds, s.log)
|
||||
val request = dispatch.url(base) / remotePath <<< (launchJar, BinaryType) as (uname, pwd)
|
||||
val http = new dispatch.Http
|
||||
val request = dispatch.classic.url(base) / remotePath <<< (launchJar, BinaryType) as (uname, pwd)
|
||||
val http = new dispatch.classic.Http
|
||||
try { http(request.as_str) } finally { http.shutdown() }
|
||||
}
|
||||
def getCredentials(cs: Seq[Credentials], log: Logger): (String, String) =
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
libraryDependencies ++= Seq(
|
||||
"net.databinder" %% "dispatch-http" % "0.8.8",
|
||||
"net.databinder" %% "dispatch-http" % "0.8.9",
|
||||
"org.jsoup" % "jsoup" % "1.7.1"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue