summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Yukhnevich <whyoleg@gmail.com>2023-12-05 21:01:35 +0200
committerGitHub <noreply@github.com>2023-12-05 20:01:35 +0100
commit704610d903a76f73bc3033fb0cef1542964ed6bb (patch)
tree905a23dff1877449453fbe5a0a8193f66299e8ec
parent7201ab30a13cbbbe2aca8284d29ae91977bd130e (diff)
downloadkotlinx.serialization-704610d903a76f73bc3033fb0cef1542964ed6bb.tar.gz
Simplify Dokka source link configuration (#2524)
-rw-r--r--gradle/dokka.gradle10
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")
}
}