mirror of https://github.com/sbt/sbt.git
fix procedure syntax
This commit is contained in:
parent
3b1207e9c2
commit
b3fd3ce7e4
|
|
@ -142,7 +142,7 @@ object DependencyGraphSettings {
|
||||||
def printFromGraph(f: ModuleGraph ⇒ String) =
|
def printFromGraph(f: ModuleGraph ⇒ String) =
|
||||||
Def.task { streams.value.log.info(f(moduleGraph.value)) }
|
Def.task { streams.value.log.info(f(moduleGraph.value)) }
|
||||||
|
|
||||||
def showLicenseInfo(graph: ModuleGraph, streams: TaskStreams) {
|
def showLicenseInfo(graph: ModuleGraph, streams: TaskStreams): Unit = {
|
||||||
val output =
|
val output =
|
||||||
graph.nodes.filter(_.isUsed).groupBy(_.license).toSeq.sortBy(_._1).map {
|
graph.nodes.filter(_.isUsed).groupBy(_.license).toSeq.sortBy(_._1).map {
|
||||||
case (license, modules) ⇒
|
case (license, modules) ⇒
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import net.virtualvoid.sbt.graph.ModuleGraph
|
||||||
import scala.xml.XML
|
import scala.xml.XML
|
||||||
|
|
||||||
object GraphML {
|
object GraphML {
|
||||||
def saveAsGraphML(graph: ModuleGraph, outputFile: String) {
|
def saveAsGraphML(graph: ModuleGraph, outputFile: String): Unit = {
|
||||||
val nodesXml =
|
val nodesXml =
|
||||||
for (n ← graph.nodes)
|
for (n ← graph.nodes)
|
||||||
yield <node id={ n.id.idString }><data key="d0">
|
yield <node id={ n.id.idString }><data key="d0">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue