Skip to content

Commit 3759fe3

Browse files
sjrdashawley
authored andcommitted
Fix apiMappings for JDK9 with jrt: hack
Based on scala-js/scala-js@98973d4
1 parent 526a217 commit 3759fe3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.sbt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ lazy val xml = crossProject.in(file("."))
3737
file(jarPath)
3838
-> url("http://docs.oracle.com/javase/8/docs/api")
3939
)
40-
} getOrElse(Map.empty)
40+
} getOrElse {
41+
// If everything fails, jam in the Java 9 base module.
42+
Map(
43+
file("/modules/java.base")
44+
-> url("http://docs.oracle.com/javase/9/docs/api")
45+
)
46+
}
4147
}
4248
)
4349
.jvmSettings(

0 commit comments

Comments
 (0)