Merge pull request #2628 from Duhemm/wip/workaround-2620

Workaround for sbt/sbt#2620
This commit is contained in:
eugene yokota 2016-05-24 10:26:29 -04:00
commit 9849dff643
1 changed files with 4 additions and 1 deletions

View File

@ -351,7 +351,10 @@ private[sbt] trait CachedResolutionResolveEngine extends ResolveEngine {
case d: DefaultDependencyDescriptor =>
configurationsInInternal foreach { c =>
val configurations = c.split(";").map(_.split("->"))
configurations foreach { conf => d.addDependencyConfiguration(conf(0), conf(1)) }
configurations foreach { conf =>
try d.addDependencyConfiguration(conf(0), conf(1))
catch { case _: Throwable => () } // An exception will be thrown if `conf(0)` doesn't exist.
}
}
case _ => ()