From 30115bc0af3832af2e063efafd1a526ecf6eda57 Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Thu, 7 Jan 2016 13:50:07 -0600 Subject: [PATCH] Make Scaladoc (but not Unidoc) warnings non-fatal --- build.sbt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 3187687ea4..355259364e 100644 --- a/build.sbt +++ b/build.sbt @@ -37,7 +37,8 @@ lazy val commonSettings = Seq( compilerPlugin("org.scalamacros" %% "paradise" % "2.1.0-M5" cross CrossVersion.full), compilerPlugin("org.spire-math" %% "kind-projector" % "0.6.3") ), - parallelExecution in Test := false + parallelExecution in Test := false, + scalacOptions in (Compile, doc) := (scalacOptions in (Compile, doc)).value.filter(_ != "-Xfatal-warnings") ) ++ warnUnusedImport lazy val commonJsSettings = Seq( @@ -68,6 +69,7 @@ lazy val docSettings = Seq( ghpagesNoJekyll := false, siteMappings += file("CONTRIBUTING.md") -> "contributing.md", scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( + "-Xfatal-warnings", "-doc-source-url", scmInfo.value.get.browseUrl + "/tree/master€{FILE_PATH}.scala", "-sourcepath", baseDirectory.in(LocalRootProject).value.getAbsolutePath, "-diagrams"