Skip to content

Commit

Permalink
Disable fatal warnings for Dotty
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown committed Jun 19, 2020
1 parent b874fd5 commit 65afbac
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ def macroDependencies(scalaVersion: String) =
lazy val catsSettings = Seq(
incOptions := incOptions.value.withLogRecompileOnMacro(false),
libraryDependencies ++= (
if (isDotty.value) Nil else Seq(
compilerPlugin(("org.typelevel" %% "kind-projector" % kindProjectorVersion).cross(CrossVersion.full))
)
if (isDotty.value) Nil
else
Seq(
compilerPlugin(("org.typelevel" %% "kind-projector" % kindProjectorVersion).cross(CrossVersion.full))
)
) ++ macroDependencies(scalaVersion.value)
) ++ commonSettings ++ publishSettings ++ scoverageSettings ++ simulacrumSettings

Expand Down Expand Up @@ -537,6 +539,13 @@ lazy val core = crossProject(JSPlatform, JVMPlatform)
.withDottyCompat(scalaVersion.value),
doctestGenTests := doctestGenTestsDottyCompat(isDotty.value, doctestGenTests.value)
)
.settings(
scalacOptions in Compile :=
(scalacOptions in Compile).value.filter {
case "-Xfatal-warnings" if isDotty.value => false
case _ => true
}
)
.jsSettings(commonJsSettings)
.jvmSettings(commonJvmSettings ++ mimaSettings("cats-core"))

Expand Down

0 comments on commit 65afbac

Please sign in to comment.