mirror of https://github.com/sbt/sbt.git
`DefaultOptions` for resolvers should not resets existing values.
`DefaultOptions.addResolvers` and `DefaultOptions.addPluginResolvers` should not reset the existing value while adding the new ones. The names are prefixed with _add_ afterall.
This commit is contained in:
parent
59b834c679
commit
7179912387
|
|
@ -52,8 +52,8 @@ object DefaultOptions {
|
|||
def pluginResolvers(plugin: Boolean, snapshot: Boolean): Seq[Resolver] = {
|
||||
if (plugin && snapshot) Seq(Classpaths.typesafeSnapshots, Classpaths.sbtPluginSnapshots) else Nil
|
||||
}
|
||||
def addResolvers: Setting[_] = Keys.resolvers <<= Keys.isSnapshot apply resolvers
|
||||
def addPluginResolvers: Setting[_] = Keys.resolvers <<= (Keys.sbtPlugin, Keys.isSnapshot) apply pluginResolvers
|
||||
def addResolvers: Setting[_] = Keys.resolvers <++= Keys.isSnapshot apply resolvers
|
||||
def addPluginResolvers: Setting[_] = Keys.resolvers <++= (Keys.sbtPlugin, Keys.isSnapshot) apply pluginResolvers
|
||||
|
||||
@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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue