From b4e58dd34a74699db38a4dc12213d81ee621b48a Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Sat, 27 Jun 2015 15:22:45 +0200 Subject: [PATCH] Better handling of Maven scopes Used to fetch unnecessary project info. TODO Add non regression tests for that. --- core/src/main/scala/coursier/core/Resolution.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala/coursier/core/Resolution.scala b/core/src/main/scala/coursier/core/Resolution.scala index 7d3dbe883..76ecd779a 100644 --- a/core/src/main/scala/coursier/core/Resolution.scala +++ b/core/src/main/scala/coursier/core/Resolution.scala @@ -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 }