Skip to content

Commit 6de985f

Browse files
committed
Merge branch 'master' into develop
2 parents 1566880 + 84bad92 commit 6de985f

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ kotlin_version=1.9.21
1111
junit_version=4.12
1212
junit5_version=5.7.0
1313
atomicfu_version=0.23.1
14-
knit_version=0.5.0-Beta
14+
knit_version=0.5.0
1515
html_version=0.7.2
1616
lincheck_version=2.18.1
17-
dokka_version=1.8.10
17+
dokka_version=1.9.10
1818
byte_buddy_version=1.10.9
1919
reactor_version=3.4.1
2020
reactive_streams_version=1.0.3

gradle/dokka.gradle.kts

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,12 @@ tasks.withType(DokkaTaskPartial::class).configureEach {
3737
}
3838
}
3939

40-
fun GradleDokkaSourceSetBuilder.makeLinkMapping(projectDir: File) {
41-
sourceLink {
42-
val relPath = rootProject.projectDir.toPath().relativize(projectDir.toPath())
43-
localDirectory.set(projectDir.resolve("src"))
44-
remoteUrl.set(URL("https://github.com/kotlin/kotlinx.coroutines/tree/master/$relPath/src"))
45-
remoteLineSuffix.set("#L")
46-
}
47-
}
48-
49-
if (project.isMultiplatform) {
50-
// Configuration for MPP modules
51-
tasks.withType(DokkaTaskPartial::class).configureEach {
52-
// sources in MPP are located in moduleDir/PLATFORM/src,
53-
// where PLATFORM could be jvm, js, jdk8, concurrent, etc
54-
// configuration happens in buildSrc/src/main/kotlin/SourceSetsKt.configureMultiplatform
55-
dokkaSourceSets.matching { it.name.endsWith("Main") }.configureEach {
56-
val platform = name.dropLast(4)
57-
makeLinkMapping(project.file(platform))
58-
}
59-
}
60-
} else {
61-
// Configuration for JVM modules
62-
tasks.withType(DokkaTaskPartial::class).configureEach {
63-
dokkaSourceSets.named("main") {
64-
makeLinkMapping(projectDir)
40+
tasks.withType(DokkaTaskPartial::class).configureEach {
41+
dokkaSourceSets.configureEach {
42+
sourceLink {
43+
localDirectory.set(rootDir)
44+
remoteUrl.set(URL("https://github.com/kotlin/kotlinx.coroutines/tree/master"))
45+
remoteLineSuffix.set("#L")
6546
}
6647
}
6748
}

0 commit comments

Comments
 (0)