From 5501c9541d025e454e4ac6c597585c69a986e7d2 Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Thu, 26 Dec 2019 13:07:37 -0500 Subject: [PATCH] Fix deprecated ScalaInstance.libraryJar Change to using xsbti.compile.ScalaInstance.libraryJars in sbt build. --- build.sbt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 340f3d3b5..a96bc4a5f 100644 --- a/build.sbt +++ b/build.sbt @@ -117,10 +117,12 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform) apiURL := Some( url(s"""https://scala.github.io/scala-xml/api/${"-.*".r.replaceAllIn(version.value, "")}/""") ), - apiMappings ++= Map( - scalaInstance.value.libraryJar - -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/") - ) ++ { + apiMappings ++= scalaInstance.value.libraryJars.filter { file => + file.getName.startsWith("scala-library") && file.getName.endsWith(".jar") + }.map { libraryJar => + libraryJar -> + url(s"http://www.scala-lang.org/api/${scalaVersion.value}/") + }.toMap ++ { // http://stackoverflow.com/questions/16934488 Option(System.getProperty("sun.boot.class.path")).flatMap { classPath => classPath.split(java.io.File.pathSeparator).find(_.endsWith(java.io.File.separator + "rt.jar"))