mirror of https://github.com/sbt/sbt.git
Merge pull request #63 from dwijnand/fix-ConfigurationReport.toString
Fix ConfigurationReport.toString
This commit is contained in:
commit
c08a28b352
|
|
@ -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)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue