mirror of https://github.com/sbt/sbt.git
includes extra attributes in ModuleID.toString
This commit is contained in:
parent
d96c5ad1b4
commit
1dced5cc41
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue