From c8e51cfff659793650dc304d45ec24acd8a302d2 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 24 Jan 2025 15:26:08 -0500 Subject: [PATCH] Fix cross-repo linking --- buildSrc/src/main/kotlin/dokka-convention.gradle.kts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/buildSrc/src/main/kotlin/dokka-convention.gradle.kts b/buildSrc/src/main/kotlin/dokka-convention.gradle.kts index a9f8721a8f3..594f7b3c8f5 100644 --- a/buildSrc/src/main/kotlin/dokka-convention.gradle.kts +++ b/buildSrc/src/main/kotlin/dokka-convention.gradle.kts @@ -1,4 +1,3 @@ -import gradle.kotlin.dsl.accessors._619b2d94f14c1ac9ec487bdd1e99f33b.dokkaSourceSets import kotlin.text.set plugins { @@ -39,11 +38,13 @@ dokka { } } - // Configure Dokka to link to latest smithy-kotlin types + // Configure Dokka to link to smithy-kotlin types dokkaSourceSets.configureEach { externalDocumentationLinks { - // FIXME Get current smithy-kotlin-runtime-version without using version catalogs (not accessible from convention plugin) - uri("https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/latest/") + create("smithy-kotlin") { + val smithyKotlinRuntimeVersion = versionCatalogs.named("libs").findVersion("smithy-kotlin-runtime-version").get() + url("https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/$smithyKotlinRuntimeVersion") + } } } }