mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 11:01:08 +02:00
Workaround for sbt/sbt#2620
This commit is contained in:
@@ -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 _ => ()
|
||||
|
||||
Reference in New Issue
Block a user