Filter warnings on doc for publishing (#1484)

This commit is contained in:
Chris Stewart 2020-05-29 07:03:18 -05:00 committed by GitHub
parent ccbc68d668
commit b5853818ff

View file

@ -47,9 +47,13 @@ object CommonSettings {
|| s =="-Ywarn-unused"
//for 2.13 -- they use different compiler opts
|| s == "-Xlint:unused")),
//we don't want -Xfatal-warnings for publishing with publish/publishLocal either
scalacOptions in (Compile,doc) ~= (_ filterNot (s =>
s == "-Xfatal-warnings")),
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value,
scalacOptions in Test := testCompilerOpts,
Compile / compile / javacOptions ++= {
if (isCI) {
//jdk11 is used on CI, we need to use the --release flag to make sure