mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
Only add automatically detected plugins to options once. Fixes #757.
This commit is contained in:
+3
-1
@@ -1179,7 +1179,9 @@ object Classpaths
|
||||
|
||||
lazy val compilerPluginConfig = Seq(
|
||||
scalacOptions <<= (scalacOptions, autoCompilerPlugins, update) map { (options, auto, report) =>
|
||||
if(auto) options ++ autoPlugins(report) else options
|
||||
val newPlugins = autoPlugins(report)
|
||||
val existing = options.toSet
|
||||
if(auto) options ++ newPlugins.filterNot(existing) else options
|
||||
}
|
||||
)
|
||||
def substituteScalaFiles(scalaInstance: ScalaInstance, report: UpdateReport): UpdateReport =
|
||||
|
||||
Reference in New Issue
Block a user