Skip to content

Commit 9954128

Browse files
authored
Merge pull request #106 from ThoughtWorksInc/jdk-11
Fix URL for JDK 11 (fix #58)
2 parents 46f8133 + 87230de commit 9954128

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/scala/com/thoughtworks/sbtApiMappings/BootstrapApiMappings.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ object BootstrapApiMappings extends AutoPlugin {
3030
case _ => 8
3131
}
3232
if (javaVersion >= 11) {
33-
url(s"https://docs.oracle.com/en/java/javase/${javaVersion}/docs/api/")
33+
url(
34+
s"https://docs.oracle.com/en/java/javase/${javaVersion}/docs/api/java.base/"
35+
)
3436
} else {
3537
url(s"https://docs.oracle.com/javase/${javaVersion}/docs/api/")
3638
}
@@ -50,7 +52,7 @@ object BootstrapApiMappings extends AutoPlugin {
5052

5153
if (!ManagementFactory.getRuntimeMXBean.isBootClassPathSupported) {
5254
// Copied from scala-js/project/Build.scala for Java 9 or later
53-
Map(file("/modules/java.base") -> bootstrapJavadocURL.value)
55+
Map(file("/modules/java.base") -> url)
5456
} else {
5557
ManagementFactory.getRuntimeMXBean.getBootClassPath
5658
.split(File.pathSeparatorChar)

0 commit comments

Comments
 (0)