diff --git a/main/src/main/scala/sbt/Project.scala b/main/src/main/scala/sbt/Project.scala index 251e812f0..21956b4f7 100755 --- a/main/src/main/scala/sbt/Project.scala +++ b/main/src/main/scala/sbt/Project.scala @@ -296,17 +296,10 @@ object Project extends ProjectExtra { aggregate: Seq[ProjectReference] ): Project = { validProjectID(id).foreach(errMsg => sys.error(s"Invalid project ID: $errMsg")) - new ProjectDef[ProjectReference]( - id, - base, - aggregate, - Nil, - Nil, - Nil, - Plugins.empty, - Nil, - ProjectOrigin.GenericRoot - ) with Project with GeneratedRootProject + val plugins = Plugins.empty + val origin = ProjectOrigin.GenericRoot + new ProjectDef(id, base, aggregate, Nil, Nil, Nil, plugins, Nil, origin) with Project + with GeneratedRootProject } /** Returns None if `id` is a valid Project ID or Some containing the parser error message if it is not.*/