mirror of https://github.com/sbt/sbt.git
Workaround for sbt/sbt#2620
This commit is contained in:
parent
74510bc0a9
commit
2b9fd13096
|
|
@ -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 _ => ()
|
||||
|
|
|
|||
Loading…
Reference in New Issue