Created
September 23, 2012 00:18
-
-
Save bmc/3768326 to your computer and use it in GitHub Desktop.
~/.sbt/plugins/build.sbt - ArtifactoryOnline issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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