diff --git a/extractor/src/main/scala/org/jetbrains/sbt/adapters.scala b/extractor/src/main/scala/org/jetbrains/sbt/adapters.scala index ee89d7c..41d1fdb 100644 --- a/extractor/src/main/scala/org/jetbrains/sbt/adapters.scala +++ b/extractor/src/main/scala/org/jetbrains/sbt/adapters.scala @@ -17,7 +17,7 @@ case class LoadedBuildUnitAdapter(delegate: LoadedBuildUnit) { } case class UpdateReportAdapter(configurationToModule: Map[String, Seq[ModuleReportAdapter]]) { - def this(delegate: UpdateReport) { + def this(delegate: UpdateReport) = { this(delegate.configurations.map { report => (configReportName(report), report.modules.map(new ModuleReportAdapter(_))) }.toMap) @@ -31,7 +31,7 @@ case class UpdateReportAdapter(configurationToModule: Map[String, Seq[ModuleRepo } case class ModuleReportAdapter(moduleId: ModuleID, artifacts: Seq[(Artifact, File)]) { - def this(delegate: ModuleReport) { + def this(delegate: ModuleReport) = { this(delegate.module, delegate.artifacts) } }