From 8c037d9ae76c8613fd7dc374ee01db581fac957f Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Tue, 7 Jul 2015 19:43:11 +0100 Subject: [PATCH] Remove wrongly purposed --scope option Allow specifying scope (or configuration) for each dependency should be added instead. --- cli/src/main/scala/coursier/cli/Coursier.scala | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cli/src/main/scala/coursier/cli/Coursier.scala b/cli/src/main/scala/coursier/cli/Coursier.scala index da6584b85..2d7f9052c 100644 --- a/cli/src/main/scala/coursier/cli/Coursier.scala +++ b/cli/src/main/scala/coursier/cli/Coursier.scala @@ -10,7 +10,6 @@ import scalaz.{ \/-, -\/ } import scalaz.concurrent.Task case class Coursier( - scope: List[String], keepOptional: Boolean, fetch: Boolean, @ExtraName("J") default: Boolean, @@ -31,11 +30,6 @@ case class Coursier( (if (quiet) 1 else 0) } - val scopes0 = - if (scope.isEmpty) List(Scope.Compile, Scope.Runtime) - else scope.map(Parse.scope) - val scopes = scopes0.toSet - def fileRepr(f: File) = f.toString def println(s: String) = Console.err.println(s) @@ -170,7 +164,7 @@ case class Coursier( val startRes = Resolution( deps.toSet, - filter = Some(dep => (keepOptional || !dep.optional) && scopes(dep.scope)) + filter = Some(dep => keepOptional || !dep.optional) ) val fetchQuiet = coursier.fetch(repositories)