Add back addPluginResolvers (#2749)

See https://github.com/sbt/sbt/pull/2715/files#r79729382
This commit is contained in:
Dale Wijnand 2016-09-22 13:35:03 +01:00 committed by GitHub
parent 4b6c0196e6
commit 86670caf37
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ object DefaultOptions {
if (plugin && snapshot) Seq(Classpaths.typesafeSnapshots, Classpaths.sbtPluginSnapshots) else Nil
}
def addResolvers: Setting[_] = Keys.resolvers ++= { resolvers(Keys.isSnapshot.value) }
def addPluginResolvers: Setting[_] = Keys.resolvers ++= pluginResolvers(Keys.sbtPlugin.value, Keys.isSnapshot.value)
@deprecated("Use `credentials(State)` instead to make use of configuration path dynamically configured via `Keys.globalSettingsDirectory`; relying on ~/.ivy2 is not recommended anymore.", "0.12.0")
def credentials: Credentials = Credentials(userHome / ".ivy2" / ".credentials")