Only add automatically detected plugins to options once. Fixes #757.

This commit is contained in:
Mark Harrah 2013-05-28 07:56:48 -04:00
parent 2b5a088911
commit 8d13043afa
1 changed files with 3 additions and 1 deletions

View File

@ -1386,7 +1386,9 @@ object Classpaths
lazy val compilerPluginConfig = Seq(
scalacOptions := {
val options = scalacOptions.value
if(autoCompilerPlugins.value) options ++ autoPlugins(update.value, internalCompilerPluginClasspath.value.files) else options
val newPlugins = autoPlugins(update.value, internalCompilerPluginClasspath.value.files)
val existing = options.toSet
if(autoCompilerPlugins.value) options ++ newPlugins.filterNot(existing) else options
}
)
@deprecated("Doesn't properly handle non-standard Scala organizations.", "0.13.0")