Remove wrongly purposed --scope option

Allow specifying scope (or configuration) for each dependency should be
added instead.
This commit is contained in:
Alexandre Archambault 2015-07-07 19:43:11 +01:00
parent fffc3dd058
commit 8c037d9ae7
1 changed files with 1 additions and 7 deletions

View File

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