File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ def documentedSubprojects = ["kotlinx-serialization-core",
12
12
" kotlinx-serialization-properties" ,
13
13
" kotlinx-serialization-hocon" ,
14
14
" kotlinx-serialization-protobuf" ]
15
+
16
+ def jvmOnlySubprojects = [" kotlinx-serialization-hocon" ]
17
+
15
18
subprojects {
16
19
if (! (name in documentedSubprojects)) return
17
20
apply plugin : ' org.jetbrains.dokka'
@@ -72,6 +75,16 @@ subprojects {
72
75
matchingRegex. set(" org\\ .intellij\\ .lang\\ .annotations(\$ |\\ .).*" )
73
76
suppress. set(true )
74
77
}
78
+
79
+ sourceLink {
80
+ // sources directory for MPP configured in gradle/configure-source-sets.gradle:61
81
+ // in short - kotlin.srcDirs = ["$sourceSet.name/src"]
82
+ def sourcesPath = project. name in jvmOnlySubprojects ? " src/main/kotlin" : " $name /src"
83
+ def relProjectPath = rootProject. projectDir. toPath(). relativize(projectDir. toPath())
84
+ localDirectory. set(file(sourcesPath))
85
+ remoteUrl. set(new URL (" https://github.com/Kotlin/kotlinx.serialization/tree/master/$relProjectPath /$sourcesPath " ))
86
+ remoteLineSuffix. set(" #L" )
87
+ }
75
88
}
76
89
}
77
90
}
You can’t perform that action at this time.
0 commit comments