Skip to content

Instantly share code, notes, and snippets.

@bmc
Created September 23, 2012 00:18
Show Gist options
  • Save bmc/3768326 to your computer and use it in GitHub Desktop.
Save bmc/3768326 to your computer and use it in GitHub Desktop.
~/.sbt/plugins/build.sbt - ArtifactoryOnline issue
// NOTE: With SBT 0.12, the ArtifactoryOnline repo is in the list of default repos. Including it again causes
// barfage. But, it's necessary if you're also using 0.11 somewhere and specifying plugins here. (NOTE: The
// Play Framework currently uses SBT 0.11.3, so it counts.)
//
//
// Conditionally adding the repo only for 0.11.x solves the problem.
resolvers <++= (sbtVersion) { sbtV =>
val af = "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"
if (sbtV.startsWith("0.11"))
Seq(Resolver.url("sbt-plugin-releases", new URL(af))(Resolver.ivyStylePatterns))
else
Nil
}
// A plugin I use a lot.
addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment