mirror of https://github.com/sbt/sbt.git
remove Process from base imports in .sbt files and eval
The implicits are already in the sbt package object.
This commit is contained in:
parent
098ac0e1c2
commit
4ab037c5cd
|
|
@ -59,7 +59,7 @@ object BuildUtil
|
|||
deps(proj)(_.aggregate)
|
||||
}
|
||||
}
|
||||
def baseImports: Seq[String] = "import sbt._, Process._, Keys._" :: Nil
|
||||
def baseImports: Seq[String] = "import sbt._, Keys._" :: Nil
|
||||
def getImports(unit: BuildUnit): Seq[String] = getImports(unit.plugins.pluginNames, unit.definitions.buildNames)
|
||||
def getImports(pluginNames: Seq[String], buildNames: Seq[String]): Seq[String] = baseImports ++ importAllRoot(pluginNames ++ buildNames)
|
||||
def importAll(values: Seq[String]): Seq[String] = if(values.isEmpty) Nil else values.map( _ + "._" ).mkString("import ", ", ", "") :: Nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue