Better handling of Maven scopes

Used to fetch unnecessary project info.
TODO Add non regression tests for that.
This commit is contained in:
Alexandre Archambault 2015-06-27 15:22:45 +02:00
parent 2d93790f6f
commit b4e58dd34a
1 changed files with 3 additions and 3 deletions

View File

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