Merge pull request #152 from xuwei-k/procedure-syntax

fix procedure syntax
This commit is contained in:
Johannes Rudolph 2018-07-16 11:38:50 +02:00 committed by GitHub
commit 3e41ea7965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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">