Permalink
Browse files

publish snapshots

  • Loading branch information...
1 parent 6657e25 commit 6412cf034e8b2bf1bbef040149c4618caa89d6d2 @jberkel committed Dec 19, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 build.sbt
View
@@ -8,8 +8,11 @@ scalacOptions += "-deprecation"
publishMavenStyle := true
-publishTo := Some("Scala Tools Nexus" at
- "http://nexus.scala-tools.org/content/repositories/releases/")
+publishTo <<= (version) { version: String =>
+ val nexus = "http://nexus.scala-tools.org/content/repositories/"
+ if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "snapshots/")
+ else Some("releases" at nexus + "releases/")
+}
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")

0 comments on commit 6412cf0

Please sign in to comment.