From 0e834660237459069e3bc929bb5062664fa0d51b Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 5 Oct 2021 15:23:44 +0200 Subject: [PATCH] Reference Hamcrest Javadoc via javadoc.io Due to an SSL/TLS issue with hamcrest.org, the Dokka task fails with the following. > Failed to download package-list from https://hamcrest.org/JavaHamcrest/javadoc/2.1/package-list, > this might suggest that remote resource is not available, module is > empty or dokka output got corrupted See: https://github.com/hamcrest/JavaHamcrest/issues/280 As a workaround, this commit switches to javadoc.io to reference the Hamcrest Javadoc APIs. --- gradle/docs-dokka.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/docs-dokka.gradle b/gradle/docs-dokka.gradle index ef06f90418..ac2a568851 100644 --- a/gradle/docs-dokka.gradle +++ b/gradle/docs-dokka.gradle @@ -17,7 +17,7 @@ tasks.findByName("dokkaHtmlPartial")?.configure { url.set(new URL("https://kotlin.github.io/kotlinx.coroutines/")) } externalDocumentationLink { - url.set(new URL("https://hamcrest.org/JavaHamcrest/javadoc/2.1/")) + url.set(new URL("https://javadoc.io/doc/org.hamcrest/hamcrest/2.1/")) } externalDocumentationLink { url.set(new URL("https://javadoc.io/doc/javax.servlet/javax.servlet-api/latest/"))