From 331e5bcbbc69e2ed16750a25f83de99d3c8a2b29 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Mon, 30 Mar 2020 13:51:06 -0400 Subject: Switch to 3.0.0 sbt-apimappings Signed-off-by: Schuyler Eldridge --- build.sbt | 12 ------------ project/plugins.sbt | 2 ++ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/build.sbt b/build.sbt index 8cdedb27..16ef8517 100644 --- a/build.sbt +++ b/build.sbt @@ -132,18 +132,6 @@ 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( "-diagrams", "-diagrams-max-classes", "25", diff --git a/project/plugins.sbt b/project/plugins.sbt index 2ce9aa89..d4de9ef5 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -22,4 +22,6 @@ addSbtPlugin("com.github.gseitz" % "sbt-protobuf" % "0.6.5") addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.12") +addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0") + libraryDependencies += "com.github.os72" % "protoc-jar" % "3.11.1" -- cgit v1.2.3