Merge pull request #63 from dwijnand/fix-ConfigurationReport.toString

Fix ConfigurationReport.toString
This commit is contained in:
eugene yokota 2016-12-31 00:25:34 -05:00 committed by GitHub
commit c08a28b352
2 changed files with 5 additions and 4 deletions

View File

@ -99,6 +99,11 @@
"type": "sbt.librarymanagement.OrganizationArtifactReport*",
"doc": [ "a sequence containing one report for each org/name, which may or may not be part of the final resolution." ]
}
],
"toString": [
"s\"\\t$configuration:\\n\" +",
"(if (details.isEmpty) modules.mkString + details.flatMap(_.modules).filter(_.evicted).map(\"\\t\\t(EVICTED) \" + _ + \"\\n\").mkString",
"else details.mkString)"
]
},
{

View File

@ -15,10 +15,6 @@ abstract class ConfigurationReportExtra {
def evicted: Seq[ModuleID] =
details flatMap (_.modules) filter (_.evicted) map (_.module)
override def toString = s"\t$configuration:\n" +
(if (details.isEmpty) modules.mkString + details.flatMap(_.modules).filter(_.evicted).map("\t\t(EVICTED) " + _ + "\n").mkString
else details.mkString)
/**
* All resolved modules for this configuration.
* For a given organization and module name, there is only one revision/`ModuleID` in this sequence.