Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions gradle/dokka.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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")
}
}
Expand Down