diff --git a/ivy/IvyInterface.scala b/ivy/IvyInterface.scala index fdf0cd7dd..ac653de40 100644 --- a/ivy/IvyInterface.scala +++ b/ivy/IvyInterface.scala @@ -11,7 +11,11 @@ import org.apache.ivy.util.url.CredentialsStore final case class ModuleID(organization: String, name: String, revision: String, configurations: Option[String] = None, isChanging: Boolean = false, isTransitive: Boolean = true, explicitArtifacts: Seq[Artifact] = Nil, extraAttributes: Map[String,String] = Map.empty, crossVersion: Boolean = false) { - override def toString = organization + ":" + name + ":" + revision + (configurations match { case Some(s) => ":" + s; case None => "" }) + override def toString = + organization + ":" + name + ":" + revision + + (configurations match { case Some(s) => ":" + s; case None => "" }) + + (if(extraAttributes.isEmpty) "" else " " + extraString) + def extraString = extraAttributes.map { case (k,v) => k + "=" + v } mkString("(",", ",")") def cross(v: Boolean) = copy(crossVersion = v) // () required for chaining def notTransitive() = intransitive()