diff options
Diffstat (limited to 'build.sbt')
| -rw-r--r-- | build.sbt | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -39,6 +39,9 @@ lazy val commonSettings = Seq( scalacOptions := scalacOptionsVersion(scalaVersion.value) ++ Seq( "-deprecation", "-unchecked", + "-language:reflectiveCalls", + "-language:existentials", + "-language:implicitConversions", "-Yrangepos", // required by SemanticDB compiler plugin "-Ywarn-unused-import" // required by `RemoveUnused` rule ), @@ -132,19 +135,9 @@ lazy val publishSettings = Seq( lazy val docSettings = Seq( doc in Compile := (doc in ScalaUnidoc).value, autoAPIMappings := true, - apiMappings ++= { - Option(System.getProperty("sun.boot.class.path")).flatMap { classPath => - classPath.split(java.io.File.pathSeparator).find(_.endsWith(java.io.File.separator + "rt.jar")) - }.map { jarPath => - Map( - file(jarPath) -> url("https://docs.oracle.com/javase/8/docs/api") - ) - }.getOrElse { - streams.value.log.warn("Failed to add bootstrap class path of Java to apiMappings") - Map.empty[File,URL] - } - }, scalacOptions in Compile in doc ++= Seq( + "-Xfatal-warnings", + "-feature", "-diagrams", "-diagrams-max-classes", "25", "-doc-version", version.value, |
