diff --git a/buildSrc/src/main/kotlin/dokka.kt b/buildSrc/src/main/kotlin/dokka.kt index 58292a8fe..1db8a4db1 100644 --- a/buildSrc/src/main/kotlin/dokka.kt +++ b/buildSrc/src/main/kotlin/dokka.kt @@ -76,7 +76,9 @@ private fun Project.configureDokkaSourceSet( logger.lifecycle("Adding source link for root: $relativeRoot") sourceLink { localDirectory = sourceRoot - remoteUrl = url("https://github.com/pdvrieze/xmlutil/tree/master/${relativeRoot}") + val relURI = relativeRoot.toURI() + val absUrl = URI.create("https://github.com/pdvrieze/xmlutil/tree/master/").resolve(relURI) + remoteUrl = absUrl.toURL() } }