Fix new command

This was caused by bad porting of lm API usage.

Fixes #3355
This commit is contained in:
Eugene Yokota 2017-07-24 22:23:37 -04:00
parent 26954994e2
commit a68372fd52
1 changed files with 2 additions and 4 deletions

View File

@ -114,11 +114,9 @@ private[sbt] object TemplateCommandUtil {
if (!(info.module.revision endsWith "-SNAPSHOT") && jars.nonEmpty) jars.toList
else {
IO.createDirectory(templateDirectory)
val m = lm.moduleDescriptor(info.module.withConfigurations(Some("component")),
Vector.empty,
scalaModuleInfo)
val m = lm.wrapDependencyInModule(info.module, scalaModuleInfo)
val xs = lm.retrieve(m, templateDirectory, log) match {
case Left(_) => ??? // FIXME
case Left(_) => sys.error(s"Retrieval of ${info.module} failed.")
case Right(files) => files.toList
}
xs