#### Community Ivy Repository ####
[Typesafe, Inc.](
http://www.typesafe.com) has provided a freely available [Ivy Repository](
http://scalasbt.artifactoryonline.com/scalasbt) for SBT projects to make use of.
If you would like to publish your project to this Ivy repository, first contact [sbt-repo-admins](
http://groups.google.com/group/sbt-repo-admins?hl=en) and request privileges
(we have to verify code ownership, rights to publish, etc.). After which, you can deploy your plugins using the following configuration:
publishTo := Some(Resolver.url("sbt-plugin-releases", new URL("
http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns))
publishMavenStyle := false
You'll also need to add your credentials somewhere. I use a `~/.sbt/sbtpluginpublish.sbt` file:
credentials += Credentials("Artifactory Realm", "scalasbt.artifactoryonline.com", "jsuereth", "@my encrypted password@")
Where `@my encrypted password@` is actually obtained using the following [instructions](
http://wiki.jfrog.org/confluence/display/RTF/Centrally+Secure+Passwords).
*Note: Your code must abide by the [repository polices](repository-rules.html).*
To automatically deploy snapshot/release versions of your plugin use
the following configuration:
publishTo <<= (version) { version: String =>
val scalasbt = "
http://scalasbt.artifactoryonline.com/scalasbt/"
val (name, url) = if (version.contains("-SNAPSHOT"))
("sbt-plugin-snapshots", scalasbt+"sbt-plugin-snapshots")
else
("sbt-plugin-releases", scalasbt+"sbt-plugin-releases")
Some(Resolver.url(name, new URL(url))(Resolver.ivyStylePatterns))
}
*Note: ivy repositories currently don't support Maven-style snapshots.*