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