Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Changed publishing to Scala Tools... Obviously you need credentials
Browse files Browse the repository at this point in the history
there which are maintained outside the project
  • Loading branch information
Brendan W. McAdams committed Nov 2, 2010
1 parent 1f86c4c commit ddb95d8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions project/build/CasbahProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ class CasbahProject(info: ProjectInfo) extends ParentProject(info) with posterou
val specs = "org.scala-tools.testing" % "specs_2.8.0" % "1.6.5" % "test->default"
val scalatest = "org.scalatest" % "scalatest" % "1.2-for-scala-2.8.0.final-SNAPSHOT" % "test"

val publishTo = Resolver.sftp("repobum", "repobum", "/home/public/%s".format(
if (projectVersion.value.toString.endsWith("-SNAPSHOT")) "snapshots"
else "releases"
)) as("repobum_repobum", new java.io.File(Path.userHome + "/.ssh/id_rsa"))
val publishTo = "Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/%s/".format(
if (projectVersion.value.toString.endsWith("-SNAPSHOT"))
"snapshots"
else
"releases"
)

Credentials(Path.userHome / ".ivy2" / ".scalatools_credentials", log)


}

Expand Down

0 comments on commit ddb95d8

Please sign in to comment.