Skip to content

Commit a226b87

Browse files
authored
Merge pull request #271 from Philippus/fix-deprecated-library-jar
Replace deprecated scalaInstance.value.libraryJar
2 parents cc47580 + 801e20f commit a226b87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sbt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
88
name := "scala-parser-combinators",
99
scalaModuleMimaPreviousVersion := None,
1010

11-
apiMappings += (scalaInstance.value.libraryJar ->
12-
url(s"https://www.scala-lang.org/api/${scalaVersion.value}/")),
11+
apiMappings ++= scalaInstance.value.libraryJars.collect {
12+
case file if file.getName.startsWith("scala-library") && file.getName.endsWith(".jar") =>
13+
file -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")
14+
}.toMap,
1315

1416
scalacOptions in (Compile, doc) ++= {
1517
if (isDotty.value)

0 commit comments

Comments
 (0)