mirror of https://github.com/sbt/sbt.git
Fix new command
This was caused by bad porting of lm API usage. Fixes #3355
This commit is contained in:
parent
26954994e2
commit
a68372fd52
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue