Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit c2bbfad

Browse files
committed
Fix Fetch task creating invalid plugins.sbt if no plugins exist
1 parent 697f977 commit c2bbfad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/SbtFile.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ class SbtFile(var name: String, var version: String, var plugins: List[Plugin],
7979
}
8080

8181
if (defineRoot) {
82-
var rootLine = "\n\nlazy val root = (project in file(\".\")).aggregate(apiProject,%s)"
83-
.format(plugins.map(_.normalizedName).mkString(", "))
82+
var rootLine = "\n\nlazy val root = (project in file(\".\")).aggregate(%s)"
83+
.format(("apiProject" +: plugins.map(_.normalizedName)).mkString(", "))
8484

8585
if (apiProjectPath != "") {
8686
rootLine += ".dependsOn(apiProject)"

0 commit comments

Comments
 (0)