mirror of https://github.com/sbt/sbt.git
Fix ConfigurationReport.toString
Move the toString implementation from ConfigurationReportExtra to inside the ConfigurationReport JSON schema definition, that way the synthetic toString generated by contraband doesn't override the carefully defined one.
This commit is contained in:
parent
6319da53c1
commit
19f40a1668
|
|
@ -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