Fixes #67. Adds InlineConfigurationWithExcludes handling

This commit is contained in:
Eugene Yokota 2015-03-21 21:17:12 -04:00
parent 2ed925ce24
commit ca25facd17
1 changed files with 5 additions and 0 deletions

View File

@ -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)")
}