diff --git a/project/Util.scala b/project/Util.scala index 039e9d298..42a3c7b24 100644 --- a/project/Util.scala +++ b/project/Util.scala @@ -124,15 +124,15 @@ object Util { def cleanPom(pomNode: scala.xml.Node) = { import scala.xml._ - def cleanNodes(nodes: Seq[Node]): Seq[Node] = nodes flatMap ({ - case elem@Elem(prefix, "dependency", attributes, scope, children@_*) if excludePomDependency(elem) => + def cleanNodes(nodes: Seq[Node]): Seq[Node] = nodes flatMap { + case elem @ Elem(prefix, "dependency", attributes, scope, children @ _*) if excludePomDependency(elem) => NodeSeq.Empty - case Elem(prefix, "classifier", attributes, scope, children@_*) => + case Elem(prefix, "classifier", attributes, scope, children @ _*) => NodeSeq.Empty - case Elem(prefix, label, attributes, scope, children@_*) => + case Elem(prefix, label, attributes, scope, children @ _*) => Elem(prefix, label, attributes, scope, cleanNodes(children): _*).theSeq case other => other - }) + } cleanNodes(pomNode.theSeq)(0) }