mirror of https://github.com/sbt/sbt.git
Better handling of Maven scopes
Used to fetch unnecessary project info. TODO Add non regression tests for that.
This commit is contained in:
parent
2d93790f6f
commit
b4e58dd34a
|
|
@ -185,9 +185,9 @@ object Resolution {
|
|||
transitive: Scope
|
||||
): Option[Scope] =
|
||||
(base, transitive) match {
|
||||
case (Scope.Compile, other) => Some(other)
|
||||
case (Scope.Runtime, Scope.Compile) => Some(Scope.Runtime)
|
||||
case (Scope.Runtime, other) => Some(other)
|
||||
case (other, Scope.Compile) => Some(other)
|
||||
case (Scope.Compile, Scope.Runtime) => Some(Scope.Runtime)
|
||||
case (other, Scope.Runtime) => Some(other)
|
||||
case _ => None
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue