Fixed documentation when using OpenJFX

parent c3f5ff07
......@@ -8,7 +8,7 @@ if (!JavaVersion.current().isJava8Compatible)
plugins {
kotlin("jvm") version "1.3.21"
id("org.jetbrains.dokka") version "0.9.17"
id("org.jetbrains.dokka") version "0.9.18"
}
repositories {
......@@ -262,7 +262,12 @@ val dokka by tasks.getting(DokkaTask::class) {
includeNonPublic = true
externalDocumentationLink {
url = url("https://docs.oracle.com/javase/8/javafx/api/")
if (JavaVersion.current().isJava11Compatible) {
val path = "https://openjfx.io/javadoc/${JavaVersion.current().majorVersion}/"
url = url(path)
packageListUrl = url(path + "element-list")
} else
url = url("https://docs.oracle.com/javase/8/javafx/api/")
}
externalDocumentationLink {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment