mirror of https://github.com/sbt/sbt.git
Fixes #67. Adds InlineConfigurationWithExcludes handling
This commit is contained in:
parent
2ed925ce24
commit
ca25facd17
|
|
@ -199,9 +199,14 @@ object Plugin extends sbt.Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
// This is to support 0.13.8's InlineConfigurationWithExcludes while not forcing 0.13.8
|
||||
type HasModule = {
|
||||
val module: ModuleID
|
||||
}
|
||||
def crossName(ivyModule: IvySbt#Module) =
|
||||
ivyModule.moduleSettings match {
|
||||
case ic: InlineConfiguration => ic.module.name
|
||||
case hm: HasModule if hm.getClass.getName == "sbt.InlineConfigurationWithExcludes" => hm.module.name
|
||||
case _ =>
|
||||
throw new IllegalStateException("sbt-dependency-graph plugin currently only supports InlineConfiguration of ivy settings (the default in sbt)")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue