Skip to content
Permalink
Browse files

Fix Fetch task creating invalid plugins.sbt if no plugins exist

  • Loading branch information...
joblo2213 committed Jul 18, 2019
1 parent 697f977 commit c2bbfaddd163da77b5d87ec55c6dfc7881556a52
Showing with 2 additions and 2 deletions.
  1. +2 −2 project/SbtFile.scala
@@ -79,8 +79,8 @@ class SbtFile(var name: String, var version: String, var plugins: List[Plugin],
}

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

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

0 comments on commit c2bbfad

Please sign in to comment.
You can’t perform that action at this time.