Skip to content

Commit

Permalink
Merge pull request sbt#329 from non/topic/fix-console
Browse files Browse the repository at this point in the history
Fix the console.
  • Loading branch information
rickynils authored Apr 17, 2017
2 parents 2018cd8 + d4ec092 commit f48117f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ lazy val sharedSettings = MimaSettings.settings ++ scalaVersionSettings ++ Seq(
}
},

// HACK: without these lines, the console is basically unusable,
// since all imports are reported as being unused (and then become
// fatal errors).
scalacOptions in (Compile, console) ~= {_.filterNot("-Ywarn-unused-import" == _)},
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value,

// don't use fatal warnings in tests
scalacOptions in Test ~= (_ filterNot (_ == "-Xfatal-warnings")),

//mimaPreviousArtifacts := (
Expand Down

0 comments on commit f48117f

Please sign in to comment.