Make warnings for multiple resolvers with same name more verbose.

Just so that user can figure out more quickly what's going on
This commit is contained in:
Indrajit Raychaudhuri 2012-02-28 16:33:20 +05:30
parent ea08f86520
commit 940b77f940
1 changed files with 1 additions and 1 deletions

View File

@ -805,7 +805,7 @@ object Classpaths
)
def warnResolversConflict(ress: Seq[Resolver], log: Logger) {
for ((name, r) <- ress groupBy (_.name) if r.size > 1) {
log.warn("Multiple resolvers configured with the name '" + name + "'. Rename to avoid conflict.")
log.warn("Multiple resolvers configured with the name '" + name + "'. To avoid conflict, Remove duplicate project resolvers (`resolvers`) or rename publishing resolver (`publishTo`).")
}
}
def pluginProjectID: Initialize[ModuleID] = (sbtVersion in update, sbtBinaryVersion in update, scalaVersion in update, scalaBinaryVersion in update, projectID, sbtPlugin) {