Disable externalDocumentationLinks unless a project property is set

I think these are causing lots of CI failures at the moment.

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 38f978c4a5
commit 8a459ddd47
  1. 102
      build.gradle.kts

@ -148,72 +148,74 @@ configure(subprojects.filter { it.isFree }) {
remoteLineSuffix.set("#L") remoteLineSuffix.set("#L")
} }
externalDocumentationLink { if (project.hasProperty("externalDocumentationLinks")) {
url.set(URL("https://asm.ow2.io/javadoc/")) externalDocumentationLink {
} url.set(URL("https://asm.ow2.io/javadoc/"))
}
externalDocumentationLink { externalDocumentationLink {
url.set(URL("https://www.bouncycastle.org/docs/docs1.5on/")) url.set(URL("https://www.bouncycastle.org/docs/docs1.5on/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(URL("https://www.bouncycastle.org/docs/pkixdocs1.5on/")) url.set(URL("https://www.bouncycastle.org/docs/pkixdocs1.5on/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(URL("https://ajalt.github.io/clikt/api/clikt/")) url.set(URL("https://ajalt.github.io/clikt/api/clikt/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(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.set(URL("https://guava.dev/releases/${Versions.guava}/api/docs/")) url.set(URL("https://guava.dev/releases/${Versions.guava}/api/docs/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(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(".")
.take(2) .take(2)
.joinToString(".") .joinToString(".")
externalDocumentationLink { externalDocumentationLink {
url.set(URL("https://fasterxml.github.io/jackson-annotations/javadoc/$jacksonVersion/")) url.set(URL("https://fasterxml.github.io/jackson-annotations/javadoc/$jacksonVersion/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(URL("https://fasterxml.github.io/jackson-core/javadoc/$jacksonVersion/")) url.set(URL("https://fasterxml.github.io/jackson-core/javadoc/$jacksonVersion/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(URL("https://fasterxml.github.io/jackson-databind/javadoc/$jacksonVersion/")) url.set(URL("https://fasterxml.github.io/jackson-databind/javadoc/$jacksonVersion/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(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.set(URL("http://www.jdom.org/docs/apidocs/")) url.set(URL("http://www.jdom.org/docs/apidocs/"))
} }
externalDocumentationLink { externalDocumentationLink {
url.set(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.set(URL("https://junit.org/junit5/docs/${Versions.junit}/api/")) url.set(URL("https://junit.org/junit5/docs/${Versions.junit}/api/"))
} }
externalDocumentationLink { externalDocumentationLink {
val version = Versions.netty.split(".") val version = Versions.netty.split(".")
.take(2) .take(2)
.joinToString(".") .joinToString(".")
url.set(URL("https://netty.io/$version/api/")) url.set(URL("https://netty.io/$version/api/"))
}
} }
} }
} }

Loading…
Cancel
Save