This commit is contained in:
Martin Duhem 2016-05-24 10:25:24 +02:00
parent ba274e05ac
commit 1756d73724
1 changed files with 4 additions and 1 deletions

View File

@ -355,7 +355,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 _ => ()