Update Dokka

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent a2d41d924f
commit eb7f71a7a4
  1. 47
      build.gradle.kts
  2. 2
      buildSrc/src/main/java/Versions.kt

@ -4,6 +4,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jmailen.gradle.kotlinter.KotlinterExtension import org.jmailen.gradle.kotlinter.KotlinterExtension
import org.jmailen.gradle.kotlinter.KotlinterPlugin import org.jmailen.gradle.kotlinter.KotlinterPlugin
import java.io.ByteArrayOutputStream import java.io.ByteArrayOutputStream
import java.net.URL
defaultTasks("build") defaultTasks("build")
@ -137,42 +138,42 @@ configure(subprojects.filter { it.isFree }) {
dokkaSourceSets { dokkaSourceSets {
configureEach { configureEach {
includeNonPublic = true includeNonPublic.set(true)
jdkVersion = 11 jdkVersion.set(11)
moduleDisplayName = "openrs2" moduleDisplayName.set("openrs2")
sourceLink { sourceLink {
path = rootDir.toString() localDirectory.set(rootDir)
url = "https://git.openrs2.dev/openrs2/openrs2/src/commit/${commitHash()}" remoteUrl.set(URL("https://git.openrs2.dev/openrs2/openrs2/src/commit/${commitHash()}"))
lineSuffix = "#L" remoteLineSuffix.set("#L")
} }
/*externalDocumentationLink { externalDocumentationLink {
url = URL("https://asm.ow2.io/javadoc/") url.set(URL("https://asm.ow2.io/javadoc/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://www.bouncycastle.org/docs/docs1.5on/") url.set(URL("https://www.bouncycastle.org/docs/docs1.5on/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://www.bouncycastle.org/docs/pkixdocs1.5on/") url.set(URL("https://www.bouncycastle.org/docs/pkixdocs1.5on/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://ajalt.github.io/clikt/api/clikt/") url.set(URL("https://ajalt.github.io/clikt/api/clikt/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://commons.apache.org/proper/commons-compress/javadocs/api-${Versions.commonsCompress}/") url.set(URL("https://commons.apache.org/proper/commons-compress/javadocs/api-${Versions.commonsCompress}/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://guava.dev/releases/${Versions.guava}/api/docs/") url.set(URL("https://guava.dev/releases/${Versions.guava}/api/docs/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://google.github.io/guice/api-docs/${Versions.guice}/javadoc/") url.set(URL("https://google.github.io/guice/api-docs/${Versions.guice}/javadoc/"))
} }
val jacksonVersion = Versions.jackson.split(".") val jacksonVersion = Versions.jackson.split(".")
@ -180,31 +181,31 @@ configure(subprojects.filter { it.isFree }) {
.joinToString(".") .joinToString(".")
externalDocumentationLink { externalDocumentationLink {
url = URL("https://fasterxml.github.io/jackson-annotations/javadoc/$jacksonVersion/") url.set(URL("https://fasterxml.github.io/jackson-annotations/javadoc/$jacksonVersion/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://fasterxml.github.io/jackson-core/javadoc/$jacksonVersion/") url.set(URL("https://fasterxml.github.io/jackson-core/javadoc/$jacksonVersion/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://fasterxml.github.io/jackson-databind/javadoc/$jacksonVersion/") url.set(URL("https://fasterxml.github.io/jackson-databind/javadoc/$jacksonVersion/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://fasterxml.github.io/jackson-dataformats-text/javadoc/yaml/$jacksonVersion/") url.set(URL("https://fasterxml.github.io/jackson-dataformats-text/javadoc/yaml/$jacksonVersion/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("http://www.jdom.org/docs/apidocs/") url.set(URL("http://www.jdom.org/docs/apidocs/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://google.github.io/jimfs/releases/${Versions.jimfs}/api/docs/") url.set(URL("https://google.github.io/jimfs/releases/${Versions.jimfs}/api/docs/"))
} }
externalDocumentationLink { externalDocumentationLink {
url = URL("https://junit.org/junit5/docs/${Versions.junit}/api/") url.set(URL("https://junit.org/junit5/docs/${Versions.junit}/api/"))
} }
externalDocumentationLink { externalDocumentationLink {
@ -212,8 +213,8 @@ configure(subprojects.filter { it.isFree }) {
.take(2) .take(2)
.joinToString(".") .joinToString(".")
url = URL("https://netty.io/$version/api/") url.set(URL("https://netty.io/$version/api/"))
}*/ }
} }
} }
} }

@ -5,7 +5,7 @@ object Versions {
const val clikt = "3.0.0" const val clikt = "3.0.0"
const val commonsCompress = "1.20" const val commonsCompress = "1.20"
const val dependencyLicenseReport = "1.14" const val dependencyLicenseReport = "1.14"
const val dokka = "1.4.0-rc" const val dokka = "1.4.0"
const val fastutil = "8.4.1" const val fastutil = "8.4.1"
const val fernflower = "1.0.4-SNAPSHOT" const val fernflower = "1.0.4-SNAPSHOT"
const val guava = "29.0-jre" const val guava = "29.0-jre"

Loading…
Cancel
Save