diff options
author | Oleg Yukhnevich <whyoleg@gmail.com> | 2023-12-05 21:01:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 20:01:35 +0100 |
commit | 704610d903a76f73bc3033fb0cef1542964ed6bb (patch) | |
tree | 905a23dff1877449453fbe5a0a8193f66299e8ec | |
parent | 7201ab30a13cbbbe2aca8284d29ae91977bd130e (diff) | |
download | kotlinx.serialization-704610d903a76f73bc3033fb0cef1542964ed6bb.tar.gz |
Simplify Dokka source link configuration (#2524)
-rw-r--r-- | gradle/dokka.gradle | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gradle/dokka.gradle b/gradle/dokka.gradle index b4c6c220..5a208f2b 100644 --- a/gradle/dokka.gradle +++ b/gradle/dokka.gradle @@ -13,8 +13,6 @@ def documentedSubprojects = ["kotlinx-serialization-core", "kotlinx-serialization-hocon", "kotlinx-serialization-protobuf"] -def jvmOnlySubprojects = ["kotlinx-serialization-hocon"] - subprojects { if (!(name in documentedSubprojects)) return apply plugin: 'org.jetbrains.dokka' @@ -77,12 +75,8 @@ subprojects { } sourceLink { - // sources directory for MPP configured in gradle/configure-source-sets.gradle:61 - // in short - kotlin.srcDirs = ["$sourceSet.name/src"] - def sourcesPath = project.name in jvmOnlySubprojects ? "src/main/kotlin" : "$name/src" - def relProjectPath = rootProject.projectDir.toPath().relativize(projectDir.toPath()) - localDirectory.set(file(sourcesPath)) - remoteUrl.set(new URL("https://github.com/Kotlin/kotlinx.serialization/tree/master/$relProjectPath/$sourcesPath")) + localDirectory.set(rootDir) + remoteUrl.set(new URL("https://github.com/Kotlin/kotlinx.serialization/tree/master")) remoteLineSuffix.set("#L") } } |