Permalink
Browse files

Fix publishTo.

  • Loading branch information...
1 parent 115f7b4 commit fe9e37224612d5049e7fd56a21a8216a7d1e8c31 Heiko Seeberger committed Nov 21, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 build.sbt
View
@@ -9,9 +9,13 @@ libraryDependencies += "org.scalaz" %% "scalaz-core" % "6.0.3"
scalacOptions ++= Seq("-unchecked", "-deprecation")
-publishTo <<= (version) { v =>
- import Classpaths._
- Option(if (v endsWith "SNAPSHOT") typesafeSnapshots else typesafeResolver)
+publishTo <<= (version) { version =>
+ val (name, url) =
+ if (version endsWith "SNAPSHOT")
+ "typesafe-ivy-snapshots" -> "http://repo.typesafe.com/typesafe/ivy-snapshots/"
+ else
+ "typesafe-ivy-releases" -> "http://repo.typesafe.com/typesafe/ivy-releases/"
+ Some(Resolver.url(name, new java.net.URL(url))(Resolver.ivyStylePatterns))
}
publishMavenStyle := false

0 comments on commit fe9e372

Please sign in to comment.