mirror of https://github.com/sbt/sbt.git
[1.x] Fix missing `project` directory (#8583)
* create `project` directory if extra sbt files are added to the meta-build #8570
This commit is contained in:
parent
d54989915b
commit
16cbaef475
|
|
@ -1233,9 +1233,12 @@ private[sbt] object Load {
|
|||
val extraSbtFiles: Seq[File] =
|
||||
if (isMetaBuildContext(context)) s.get(BasicKeys.extraMetaSbtFiles).getOrElse(Nil)
|
||||
else Nil
|
||||
if (hasDefinition(dir) || extraSbtFiles.nonEmpty)
|
||||
if (hasDefinition(dir) || extraSbtFiles.nonEmpty) {
|
||||
if (extraSbtFiles.nonEmpty && !dir.exists()) {
|
||||
IO.createDirectory(dir)
|
||||
}
|
||||
buildPlugins(dir, s, enableSbtPlugin(activateGlobalPlugin(config)))
|
||||
else
|
||||
} else
|
||||
noPlugins(dir, config)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue