Skip to content

Commit c8e51cf

Browse files
committed
Fix cross-repo linking
1 parent 8652996 commit c8e51cf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

buildSrc/src/main/kotlin/dokka-convention.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import gradle.kotlin.dsl.accessors._619b2d94f14c1ac9ec487bdd1e99f33b.dokkaSourceSets
21
import kotlin.text.set
32

43
plugins {
@@ -39,11 +38,13 @@ dokka {
3938
}
4039
}
4140

42-
// Configure Dokka to link to latest smithy-kotlin types
41+
// Configure Dokka to link to smithy-kotlin types
4342
dokkaSourceSets.configureEach {
4443
externalDocumentationLinks {
45-
// FIXME Get current smithy-kotlin-runtime-version without using version catalogs (not accessible from convention plugin)
46-
uri("https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/latest/")
44+
create("smithy-kotlin") {
45+
val smithyKotlinRuntimeVersion = versionCatalogs.named("libs").findVersion("smithy-kotlin-runtime-version").get()
46+
url("https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/$smithyKotlinRuntimeVersion")
47+
}
4748
}
4849
}
4950
}

0 commit comments

Comments
 (0)