File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,12 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
117
117
apiURL := Some (
118
118
url(s """ https://scala.github.io/scala-xml/api/ ${" -.*" .r.replaceAllIn(version.value, " " )}/ """ )
119
119
),
120
- apiMappings ++= Map (
121
- scalaInstance.value.libraryJar
122
- -> url(s " http://www.scala-lang.org/api/ ${scalaVersion.value}/ " )
123
- ) ++ {
120
+ apiMappings ++= scalaInstance.value.libraryJars.filter { file =>
121
+ file.getName.startsWith(" scala-library" ) && file.getName.endsWith(" .jar" )
122
+ }.map { libraryJar =>
123
+ libraryJar ->
124
+ url(s " http://www.scala-lang.org/api/ ${scalaVersion.value}/ " )
125
+ }.toMap ++ {
124
126
// http://stackoverflow.com/questions/16934488
125
127
Option (System .getProperty(" sun.boot.class.path" )).flatMap { classPath =>
126
128
classPath.split(java.io.File .pathSeparator).find(_.endsWith(java.io.File .separator + " rt.jar" ))
You can’t perform that action at this time.
0 commit comments